CMD instead of running command just opens it - google-app-engine

OS Win7, GAE 1.7.6, Python 2.7.3
Working on Google app engine project with 2 other people, project leader gave us sample data via sampleData.cmd to run it inside.
nameOfTheApp\main>sampleData
On other 2 computer this command starts to download files, on my just returns.
appcfg.py upload_data --config_file=bulkloader.yam...etc
In other words it just pop up in my text editor, and in CMD, but it doesn't run it.
How to force this command to run?
EDIT: Open sampleData.cmd with editor and c/p content in CMD
python appcfg.py upload_data --config_file=bulkloader.yam...etc
It returns python:can't open file 'appcfg.py' [Errno 2] No such file or directory
ANSWER:
Problem was that I associated .py files with my text editor, when changed to python.exe, it works...

Problem was that I associated .py files with my text editor, when i changed it to .exe, it works...

Related

'mongo' is still not working on PowerShell after doing all recommended things

I installed MongoDB and tried to run it on terminal. It just shows up 'mongo' is not recognized as an internal or external command, operable program or batch file.
I have set the path to bin folder inside Environment variables too. One thing I noticed is I might have a missing file inside bin folder and that is mongo. Because I have mongod and mongos file inside the bin folder. I tried to uninstall and reinstall the program and it was still not working.
I have no idea it's what that I'm missing. Please help out
Finally I have found the solution,
Mongo shell no longer ships with server binaries. We can download it from MongoDB Shell Download
Then we should extract the contents of the bin from the downloaded zip file to the bin file of the MongoDB folder and run mongosh instead of mongo on the terminal

FileZilla Pro CLI Batch command file not executing

I am currently attempting to use FileZilla Pro CLI on a Windows machine to connect and upload to a site in that is working in the Site Manager.
The issue is, the command below works perfectly when pasting it directly into the cmd line. However when saving it as a batch file, it simply just gets to the fzcli> prompt and then nothing happens.
The two line breaks are on purposes to override the requirement for a password and it works perfectly when pasted in.
Does anyone know if this is a cmd line issue, or if my commands need to be different to work in batch file mode?
fzcli
connect --site 0testsite01
put C:/inetpub/wwwroot/websites/sftp/files/customer/test-01.txt /test-sftp/testuser01/test/test-01-uploaded.txt
PAUSE
Your batch file executes fzcli in an interactive mode. The fzcli then waits for you to interactively enter the commands. Only after you would exit the fzcli, the batch file would continue. And fail, as it will try to execute connect as a batch file command. The fzcli does not know about the batch file. Nor does the batch file interpreter know about the fzcli commands.
It's a common misconception. You will find plenty of similar questions basically about scripting any tool that has its own commands. For example: sftp, ftp, psftp, winscp.
To provide commands to fzcli, it seems that you need to use --script switch. The fzcli documentation gives this example:
fzcli --mode standalone --script C:\Scripts\script-file

Bat file is missing in jmeter bin folder

I just tried to install jmeter - (Apache-j meter-5.1.1) but when I view the bin folder bat file is missing. My configuration details: version of jdk is 12.0.2, my operation system is 64 bit. View the screenshot of bin folder -
https://www.screencast.com/t/apWQkxP3dD4h
Type Windows Batch File is a file type with extension .bat
You have such jmeter file in your screenshot
A batch file is a script file in DOS, OS/2 and Microsoft Windows.
The filename extension .bat is used in DOS and Window
The jmeter.bat file can be obtained from JMeter sources at any time if you removed it by accident.
However in fact you do have the file:
You might want to configure Windows Explorer to show file extensions
In general I would recommend launching JMeter from Windows Command Prompt as in case of i.e. Java misconfiguration you will not be able to see the output given you launch JMeter by double-clicking the shortcut because it will blink and close immediately.
More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans
Just double click on file type named as Jmeter with type as "Windows Batch File" or else open it from command prompt/terminal.
refer to the attached screenshot.
Cliek here to open a screenshot

I'm new to command line. I get a lot of messages like 'command not found' and 'no such file or directory'

Trying to run gcloud init to initialize the Google App Engine Engine SDK by typing ./google-cloud-sdk/bin/gcloud init but it showed: no such file or directory or command not found. Is something wrong with my PATH? My path is:
/Users/AnneLutz/Documents/google-cloud-sdk\
If you typing ./google-cloud-sdk/bin/gcloud init and you installed Cloud SDK in /Users/AnneLutz/Documents/google-cloud-sdk, then your current directory should be /Users/AnneLutz/Documents in order for what you type to work.
That said you should add /Users/AnneLutz/Documents/google-cloud-sdk/bin to you path. To do this, assuming you are using bash you can
source /Users/AnneLutz/Documents/google-cloud-sdk/path.bash.inc
To make it so that every-time you start your shell you can add it to shell profile. For example you can add above source command at the end of ~/.bash_profile file.
It looks like you used the option to download the SDK zip file and are then trying to configure your environment with that download option. If you aren't comfortable with setting environment variables, you might want to instead try installing using the "interactive" installer, which will automate the steps for making the commands always available on your system.
The directions are here, but for Mac OS users are basically:
Enter the following at a command prompt:
curl https://sdk.cloud.google.com | bash
Restart your shell:
exec -l $SHELL
Run gcloud init to initialize the gcloud environment:
gcloud init
For many, this procedure is easier than getting everything configured manually.

How to launch sqlite Database browser from the command line on Mac OS X

I am following a tutorial for Ruby on Rails3. The author types the following which launches sqlite Database Browser and opens the specified database.
open db/development.sqlite3
What can I do to configure my system to do the same? I am on Mac OSX 10.6
Thanks in advance :)
You can install sqlite3 command line tool from MacPorts or you can download, satisfy dependencies and compile it yourself.
If you have macports installed, execute command
sudo port install sqlite3
then
sqlite3 anyfile.db
to launch command line interface on specified sqlite3 file.
On Mac OS X, the command open FILE will perform the same action as double-clicking the file in Finder. If it is not working, it's because the file type needs to be associated with the application:
Select the file in Finder.
Select "Get Info" from the File menu.
In the "Open with:" section, pick the application you want.
Optionally, click "Change All..." to use that app for all files with same extension.
Afterward, open will launch that app with that file.
If you don't want to change the type, you can also tell the open command which app to use:
open -a "App Name" FILE
Type man open to see the manual page which will explain in more detail how it works.
Download sqlite-shell-osx-x86-3071401.zip from http://www.sqlite.org/download.html
Double click the zip, then double click sqlite3.

Resources