Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm rather new to MacOS and I cannot find it easy to working with Terminal to get ffmpeg run properly as I have on Window.
I have got ffmpeg binary from http://ffmpegmac.net and I try running the executable in Terminal, it tells that the command not found ? The only way I can run it by now is using command : "open ffmpeg", but this way the Terminal open in another window and this is not what I'm expecting.
Is there any ways to call ffmpeg directly in Terminal (just like run in on Windows cmd) or I'm missing anything ?
Mac OS X (and Unix) is different to Windows. Calling open ffmpeg isn't guaranteed to open the binary in the directory, it's guaranteed to find the binary in your PATH variable (do echo $PATH to see that). Try open ./ffmpeg instead.
You might actually be best off installing it with Homebrew, that'll give you system wide access to it.
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm guessing this should be easy but I can't work anything out.
I'm using terminal on my Mac (latest OS). I'm connecting to a web server and running this command:
sudo nano /etc/apache2/apache2.conf
I then see the config file. I can change things, but for the life of my I can't save it. I can see the list of options highlighted at the bottom saying use ^X to exit and I've tried :w! etc. but nothing. The problem seems to be whatever I type is being used as changes to the file, so some how I need to type into terminal but not as an edit to the file.
If I close the terminal then everything is ignored, so that won't work.
I'm using Ubuntu 12.04 LTS if that means anything.
I bet this is easy, but it's really frustrating for me.
^X means to press the control key and X rather than type it in.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I use meld on Linux and I am able to compare two pieces of text without having to save them in files. Is there something similar for Mac and Windows?
BBEdit for macOS does a nice diff of either files on disk or documents being edited.
That would allow you to make two empty docs, paste your text into each of them and run the diff.
BBEdit is a paid-for app, but it has a free mode that will let you do what you are looking for.
The meld tool has been ported to Mac OS X and is available via "fink".
Another link is this one.
You will need to install fink first however, and I believe you can get started here.
NotePad++ with the Compare plugin on Windows:
http://sourceforge.net/projects/npp-compare/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to execute c++ binary in terminal without inputting "./a.out", just typing "a.out"
In my school's PC(solaris10), I can just type a.out and the program executed. However, on my PC's solaris11 doesn't accept just "a.out".
I believe there is a way to make it possible. If you know, please tell me.
If possible, I want to know the instruction fo solaris, Ubuntu and macOS X, because I usually use Ubuntu and mac.
Thanks in advance!!
It sounds, like the PATH variable has been set to include the home directory at your schools PC. You see, each time you enter a command without a path, it searches your entire PATH (which can consist of multiple paths) for something that matches the filename you supplied and executes the first thing it finds.
Check this link for some instructions: http://www.troubleshooters.com/linux/prepostpath.htm
Either you do a temporary fix, with
PATH=$PATH:/data/myscripts
or you edit the hidden file .bash_profile in your home directory for a more permanent fix.
I hope this helps.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I am trying to run Wireshark on Mac OS X, on the background. I did install the command line utilities, and so I am able to start wireshark and capture packet using the command line. The only thing I want now is to run it on the background, without even having the X11 icon on the task bar and see the window of wireshark. I believe it is possible but can't find anything on the doc of Wireshark.
Maybe another way would be to find a trick to hide an icon on Mac OS X...
If anybody already did that or have an idea...
Thank you
Please excuse my English which is not perfect at all
As far as I remember TShark comes with all distributions of Wireshark. This runs from the command line.
The documentation for it is tshark documentation
And there's some examples on how to use it here
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
How can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using
nohup open symlink1
without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by double clicking the link, but without the terminal window popping up.
Why not just make an HFS+ alias? Command-option-drag the iTunes app anywhere you want on your machine, and it should work like you want it to.
I just figured out a solution:
Make an executable (intended as the link)
#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit
and change under preferences in Terminal
When the shell quits: close if the shell exited cleanly
Change iTunesX and the cd path to any desired target.