I have an ubuntu server on AWS EC2. I can access it, with Putty and ssh, from a Windows 7 laptop. I would like to start a process up during one of these ssh sessions and have it continue after I have ended the ssh session. I thought that this could be done with nohup. However I try the following command on one ssh session.
nohup /var/www/Executables/inotifydropboxcopy &
I then do
ps | grep inotify
I get
27554 pts/0 00:00:00 inotifydropboxcopy
However, when I open a new ssh session, to the same server, and type
ps | grep inotify
I get nothing. I also get nothing when I end the ssh session and start another.
How do I start a process that continues, on the server, between ssh sessions?
Edit:
I went into screen
screen
entered
/var/www/Executables/inotifydropboxcopy &
Then detached from screen with ctrl-ad
Then, on the initial ssh session
ps | grep inotify
returned
27554 pts/0 00:00:00 inotifydropboxcopy
But, when I started up a new ssh session and entered
ps | grep inotify
I got nothing.
screen
instead