command-line-interface

How to check PCF version

北战南征 提交于 2019-12-02 11:21:03
问题 Is there a way to know which Pivotal Cloud Foundry licensed version we are using? I see there are some marketplace services offered free in Public PCF but they are not available in the licensed PCF version we are using? I am assuming the version mismatch might be the reason. 回答1: As a normal cf user of Pivotal Cloud Foundry/Elastic Runtime/Application Service it can be a little tedious to figure out what version is running. As a cf user you can start with cf target or cf api to get the target

“Fatal error: Call to undefined method PHPUnit_Util_Filter::addfiletofilter() in /usr/bin/phpunit on line 48”

喜你入骨 提交于 2019-12-02 09:34:00
I have just installed phpunit using PEAR on our Ubuntu/Linux server ( Linux mccoy 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux ) when I try to run a unit test I get the error: "Fatal error: Call to undefined method PHPUnit_Util_Filter::addfiletofilter() in /usr/bin/phpunit on line 48" I have googled this and came across a few threads on it however none of these seem to fix my issue. I have added the following line to my /etc/php5/cli/php.ini: include_path = ".:/usr/share/php/PHPUnit" (I've also tried it without the "/PHPUnit" folder included) But I still get

Erro Install Android Target - Cordova CLI

心不动则不痛 提交于 2019-12-02 08:39:56
问题 i am using Android SDK Studio with Command CLI of Cordova in my Mac Yosemite for developer a app, but i found that error para add platform android in my project. Command executing: cordova platform add android Error: /Users/roni/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:126 throw e; ^ Error: Please install Android target "android-19". Hint: Run "android" from your command-line to open the SDK manager. at /Users/roni/.cordova/lib/npm_cache/cordova-android/3.6

How to download the app with the CLI from the Swisscom App Cloud?

血红的双手。 提交于 2019-12-02 07:30:36
问题 I am trying to download my app wich is currently running in the Swisscom App Cloud. Therefore I installed the cf-download plugin. My command: cf download app-name /public --verbose --omit /vendors --overwrite After running this command I get the following error: The app is running on the Diego backend, which does not support this command. Is cf download thus not possible in the Swisscom App Cloud? I've tried cf files as well. Same error. 回答1: You can do that with an API call Apps API

Unable to run the javafx project using command line

萝らか妹 提交于 2019-12-02 07:18:56
问题 I recently had created the javafx project in eclipse, I successfully ran in eclipse and it just works fine. I wanted to run my project using the command line interface. I am able to compile successfully but not able to run and it keeps on giving "Error: could not find or load main class Main" Compile command (Works fine): javac -cp "C:\Program Files (x86)\Oracle\JavaFX 2.2 Runtime\lib\jfxrt.jar" Main.java Main.class is created after the above command. Run Command (doesn't work): java -cp "C:

How to write into and read from command line in Java ? [duplicate]

为君一笑 提交于 2019-12-02 07:13:30
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Java external program I am trying to wrtie a program to write a command on a command line, for example; ipconfig and then get the response of the command so I want to both write command to a command line and get its response. I have searched about it on the net and saw that apache cli is used to do this in Java but actually I did not clearly get how it can be done. Can you please help me about my situation with

Merging 3 separate commands into one that re-encodes a video, extracts a thumbnail, delete original and rename new video in subdirectories

风格不统一 提交于 2019-12-02 07:08:31
I am trying to execute a find bash command to process hundreds of video files that are all named video-original.mp4 but are in subdirectories of a parent directory. Here's an example of the directory structure: videos ├── 01a │ └── video-original.mp4 ├── 01b │ └── video-original.mp4 ├── 02a │ └── video-original.mp4 ├── 02b │ └── video-original.mp4 ├── 03a │ └── video-original.mp4 └── 03b └── video-original.mp4 I am using the following command: find ./ -name 'video-original.mp4' -exec bash -c 'ffmpeg -i "$0" -f mp4 -vcodec libx264 -preset veryslow -profile:v high -acodec aac -movflags faststart

Which method to detect run mode of php script is more reliable?

你离开我真会死。 提交于 2019-12-02 06:48:54
I now to ways to detect weather php script runs in cli or web server mode: if (defined('STDIN')) or: if (isset($argc)) Do they equally reliable or one of them is more ? Neither. Check the value returned from php_sapi_name() . $_SERVER['REQUEST_METHOD'] won't be set, due to the lack of a HTTP request. I think defined( 'STDIN' ) or isset( $argc ) are reliable too, though. If it was up to me, I'd probably go with the defined( 'STDIN' ), as I can imagine someone accidentally setting a value to $argc. The php_sapi_name function above seems to be another (the most reliable?) way of determining this,

Unable to run the javafx project using command line

十年热恋 提交于 2019-12-02 06:42:37
I recently had created the javafx project in eclipse, I successfully ran in eclipse and it just works fine. I wanted to run my project using the command line interface. I am able to compile successfully but not able to run and it keeps on giving "Error: could not find or load main class Main" Compile command (Works fine): javac -cp "C:\Program Files (x86)\Oracle\JavaFX 2.2 Runtime\lib\jfxrt.jar" Main.java Main.class is created after the above command. Run Command (doesn't work): java -cp "C:\Program Files (x86)\Oracle\JavaFX 2.2 Runtime\lib\jfxrt.jar;." Main I would like to know what am I

How to set a default php.ini path for PHP CLI on Windows?

若如初见. 提交于 2019-12-02 06:23:15
问题 Brief introduction to problem: I need to load pdo_mysql to run command php app/console doctrine:database:create and other commands for Symfony2. I found a way to do this by running php -c "path/to/my/php.ini" app/console doctrine:database:create Problem: Since I don't want to add the path to my php.ini everytime I run commands in PHP CLI, where/how can I setup Windows, so that everytime I type php somecommand in console it will load my desired php.ini file? 回答1: What if you add path/to/your