Jump to content

Running a command in the background?


Recommended Posts

Hi,

 

This worked under Alfred v1, but then there were no workflows there.  I have a work flow where I type "emacs" and that launches emacs with some arguments.  If I do this as a bash script, even if I append & (ampersand, the backgrounding command) to the end of the line, then I can't run the script again until I exit the first emacs.  I can make this work by using a Terminal.app action instead of a script, but that's annoying as the terminal briefly flashes on my screen.

 

This is my current command and the one that I tried with bash, but which only works in Terminal:

 

 

 

cd ~;/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -l /Users/gnn/.emacs-login &; exit;
 

Thanks,
George

 

Link to comment

Hi,

 

This worked under Alfred v1, but then there were no workflows there.  I have a work flow where I type "emacs" and that launches emacs with some arguments.  If I do this as a bash script, even if I append & (ampersand, the backgrounding command) to the end of the line, then I can't run the script again until I exit the first emacs.  I can make this work by using a Terminal.app action instead of a script, but that's annoying as the terminal briefly flashes on my screen.

 

This is my current command and the one that I tried with bash, but which only works in Terminal:

 

 

 

cd ~;/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -l /Users/gnn/.emacs-login &; exit;
 

Thanks,

George

 

try

 

cd ~;open /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs --args -l /Users/gnn/.emacs-login

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...