Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sylco

Guest
Original poster
Feb 8, 2014
4
0
Hi i'm not very experienced with Terminal. I ran a command to launch a program and can't seem to be able to use the cd command now.

Is there something I need to do to be able to cd?
 
java -jar start.jar

also i'm hoping this will continue running?

Then you need to start it as a background process. I don't do this often enough to tell you how exactly you do it, but that's the keywords you need to search for.

(I think it's something like stick an ampersand (&) in front of the command you want ran in the background?)
 
Ohh right. Hmm. I think I should learn some more about Terminal.

I only just thought, I couldn't run other commands in a new Terminal window?
 
You could definitely run in another terminal, but:
nohup yourCommand > /dev/null 2> /dev/null < /dev/null &
Should start the command in the background discarding all output, tying stdin to null, and ignoring hangup signals.

After you run this way, you will have that terminal free to keep working, and can close the terminal without terminating the command.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.