command-prompt

Curl command on windows not passing user:pass correctly

China☆狼群 提交于 2019-12-11 18:33:50
问题 I'm using CURL to execute some API calls against a bitbucket server. The command is like this: curl https://bitbucket.myserver.com/rest/api/1.0/projects/PRJ/repos/repo-slug/tags \ -u 'user:pass' \ -X POST \ -H 'Content-type: application/json' \ -d '{"name" : "test-tag", "message": "Test tag from curl", "startPoint": "master" }' This is expected to create a tag on the master branch in the repo. This however fails complaining of incorrect username/password. I then copy/paste the command into

How to install OpenDDS 3.12 on windows system

时间秒杀一切 提交于 2019-12-11 18:29:40
问题 I recently try to install OpenDDS-3.12 on my windows7 OS. But, it has make trouble. When I try to type configure on VS command prompt, it can't detect Visual C++ version! Error code is like this: Colud not detect Visual C++ version, try running this script from the Visual Studio Command Prompt. Stopped at configure line 410. Somebody help me my problem. (Active perl version is 5.24.1, VS version is 2017) 回答1: I encountered the same issue while I had my visual studio correctly installed. I

how to clear previously run queries in mysql command prompt

≯℡__Kan透↙ 提交于 2019-12-11 15:39:22
问题 I have bunch of queries run in my console and it has many tables and results displayed, I would like to clear my console from the mysql command prompt. How can I do it? this link didn't help me. I am using mysql server 5.1. i just have to clear my console so that it won't mess. I've tried mysql> !\ clear mysql> !\ cls mysql> system cls mysql> system clear but these are not working 来源: https://stackoverflow.com/questions/18997239/how-to-clear-previously-run-queries-in-mysql-command-prompt

Unable to run MiniZinc from command line - Even after adding installation location to PATH

随声附和 提交于 2019-12-11 15:15:23
问题 Initially, I had the error: minizinc is not recognized as an internal or external command, operable program or batch file. when running minizinc mzn-cbc model.mzn data.mzn in the Git CMD. Later on, following the instructions found at https://github.com/MiniZinc/libminizinc/issues/213 with suggestions from https://groups.google.com/forum/#!topic/minizinc/IFpUM_TSNGU, I did: export PATH=$PATH:{MINIZINC} where {MINIZINC} is the installation location. However, my terminal returned the error:

How to search for line with Effective(“flyer”, 100%); in a file and get the number assigned to a variable?

牧云@^-^@ 提交于 2019-12-11 15:05:35
问题 This question is similar to my previous question How to search for line with ConstructionTime(10); in a file and get the number assigned to a variable? which was solved by Mofi with following code: @echo off set "ConstrutionTime=" for /F "tokens=2 delims=()" %%I in ('%SystemRoot%\System32\find.exe /I "constructiontime" file.cfg') do set "ConstrutionTime=%%I" if defined ConstrutionTime echo The construction time is: %ConstrutionTime% I can get the number 10 from a line with ConstructionTime=

Run Sass in .bat file

一笑奈何 提交于 2019-12-11 13:45:31
问题 For some reason I am having trouble running Sass in a .bat file. I can copy and paste a list of commands into a command prompt and they run fine. However, when I put the sass command into a .bat file file will stop executing after it runs sass. In the below example csstidy is never run. Does the ruby engine not return like my commands? Any ideas? Example.bat ...(list of commands that run fine) sass eng.scss eng-sass.css csstidy eng-less.css eng-sass.tidy.css I'm running Win7x64 来源: https:/

COMMIT not working in phpmyadmin (MySQL)

风格不统一 提交于 2019-12-11 13:38:01
问题 I've a mysql database with table tbl_setting with InnoDB type. Its autocommit is set to 1. I executed following queries in phpmyadmin. begin; INSERT INTO tbl_setting (setting_name) VALUES ('test'); commit; While browsing from phpmyadmin, it is showing the desired result; But in command mode of Windows 8, with query SELECT * FROM tbl_setting it is not displaying the row I just inserted. I am needing to do commit in command mode to get the desired output. Shouldn't the database be updated

Create folder/file and set permissions

非 Y 不嫁゛ 提交于 2019-12-11 13:09:41
问题 How to in XP from command line create folder/file and after that allow everything to everyone permissions ? I tried from properties, I deselect readonly but when I open properties again for that folder/file it is always READONLY. 回答1: You have to use "CACLS". Use CACLS /help to have the documentation. Here 2 exemples: To give the full right to the user "user1" to the directory CACLS c:\directory /E /T /C /G "user1":F To give the full right to the user "user1" to the content of the directory

How to open command prompt from my application @Client side

这一生的挚爱 提交于 2019-12-11 12:09:55
问题 Please help me how to open command prompt from client side. When i click on the button it should open command prompt. I tried in my PC and it's working in the development environment but when deploy in IIS its not opening. Code: var Processstartinfo = new ProcessStartInfo { FileName = "cmd" }; Process process = Process.Start(Processstartinfo); 回答1: asp.net runs at the server. I suspect you are running in cassini locally, so your server desktop and client desktop are the same thing. What you

When I try to launch a script, it opens and then immediately closes

▼魔方 西西 提交于 2019-12-11 11:56:31
问题 I am trying to make a simple ruby script. However, when I run it, the command line opens, and closes almost immediately. I had the same problem with a visual basic console application, so I'm not sure if this is a problem with command prompt. I am running Windows 8 with Ruby 1.9.3. Any help is appreciated. 回答1: This is a common symptom when developing command line applications on Windows, especially when using IDEs. The correct way to solve the problem is to open the command line prompt or