Questions tagged [command-line-tool]

A command line tool is a console based application either run in MS-DOS or a terminal (Command prompt for windows, and terminal for linux and mac)

339 questions
20
votes
7 answers

Node-sass is not recognized by command line

I'm trying to set up node-sass, following the instructions on CSS-Tricks. Node and npm are installed correctly, and the node-sass installation worked too. When I go to run node-sass --output-style compressed -o dist/css src/scss, though, I get an…
Sam Woolerton
  • 439
  • 2
  • 8
  • 14
19
votes
9 answers

Pod file not being initialized?

When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it. /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:128:in `verify_minimum_git_version!': [!] You need at least git version…
Usama bin Attique
  • 337
  • 1
  • 3
  • 16
16
votes
2 answers

Read a file in a macOS Command Line Tool project

I've added a few JSON files to my macOS Command Line Tool project, but I can't seem to find them the usual way. if let path = Bundle.main.path(forResource: "Data", ofType: "json") { if let contents = try? String(contentsOfFile: path) { …
XmasRights
  • 1,427
  • 13
  • 21
15
votes
2 answers

Keep command line tool alive

How would a keep a command-line tool running for ever. This is my code: #import int main (int argc, const char * argv[]) { @autoreleasepool { [[NSDistributedNotificationCenter defaultCenter]…
Tyilo
  • 28,998
  • 40
  • 113
  • 198
15
votes
3 answers

Writing XCTestCase for Mac OS Command Line Tool

I am trying to unit test a command line tool written for Mac OS. When I first create the project, XCode does not generate a tests group in the project navigator. When I try to add a new test target, it doesn't give me the option to specify my target…
Jonathan Chen
  • 716
  • 8
  • 19
15
votes
6 answers

PSEXEC - "The Handle is invalid" When running the command as System User

This is the command that works fine if run from a user-spawned command prompt: PSEXEC \\xxx.xxx.xxx.xxx -u xxxx -p xxxx -accepteula cmd /c "TYPE C:\Pyxislog\PYXIS01.log|Find/i "%ID%"" >nul However, if I try to run this from a system-invoked cmd…
bill
  • 711
  • 1
  • 8
  • 19
14
votes
1 answer

Superimposing two videos onto a static image?

I have two videos that I'd like to combine into a single video, in which both videos would sit on top of a static background image. (Think something like this.) My requirements are that the software I use is free, that it runs on OSX, and that I…
Archagon
  • 2,470
  • 2
  • 25
  • 38
13
votes
1 answer

How to deploy a Mac Command Line Tool

I've created a console application using the Xcode OS X Command Line Tool project template. When everything is said and done, where are the actual "Release" binaries placed on my machine? After searching SO, I found out where I could find the…
5StringRyan
  • 3,604
  • 5
  • 46
  • 69
11
votes
2 answers

xcode command line tools not able to locate git

On Big Sur, I had XCode CLT installed, but not xcode itself. Git was working fine. Then I installed XCode and now when I try to run git I get the following message: git: error: Failed to determine realpath of…
Kardasis
  • 901
  • 12
  • 20
11
votes
1 answer

clang: error: unable to locate xcodebuild

I am using a mac version 10.13.6. I want to compile C programs through the terminal. I've downloaded Xcode and the command line tools. When I type clang --version in the terminal, I get the following two error messages: clang: error: unable to…
ctt25
  • 121
  • 1
  • 1
  • 6
11
votes
2 answers

OSX: Execute same command on all files within a folder

i am using a command-line tool called TMX (https://github.com/tonybeltramelli/TMXResolutionTool) I want to execute this command on every .png file in a certain folder. How can i do that? This is how it is used: TMXResolutionTool
Eyeball
  • 3,267
  • 2
  • 26
  • 50
10
votes
1 answer

"No module named x.__main__; 'x' is a package and cannot be directly executed" when using entry_points / console_scripts

I have this CLI tool called Rackfocus. I've published to PyPI, and I'm reasonably sure it worked just fine before. When I try to run it with current versions of Python on Mac, I get the error: No module named rackfocus.__main__; 'rackfocus' is a…
Antrikshy
  • 2,918
  • 4
  • 31
  • 65
10
votes
2 answers

How do I use raku -e and -n with multiple file glob

I'd like to do the following in raku on windows raku -n -e ".say if /mydatabegin/;" *.file Failed to open file C:\..\*.file: Invalid argument The glob isn't interpreted as a glob. I assume that's because windows requires your programs to do the…
Gerard ONeill
  • 3,914
  • 39
  • 25
9
votes
0 answers

How to set the XCode FILEHEADER macro when using Swift PM?

I am working on a Swift package command line tool that has a third-party dependency. It has been working great just opening the repo folder and using SwiftPM, except that I don't seem to have control over the default file header. In other projects…
9
votes
1 answer

First line of batch file fails - is not recognized as an internal or external command, operable program or batch file

on Windows 7 in VS2012, I have setup an External Tool to call a bat file (let’s call it BatA.bat). In the external tool, I am passing in $(ItemDir) as the one and only Argument and I have the Initial Directory to $(ItemDir) as well. Within…
1
2
3
22 23