![](https://seccdn.libravatar.org/avatar/4970a690d65f0be504bf05853e742d20.jpg?s=120&d=mm&r=g)
Christopher Mahmood wrote:
* Mark Hounschell (markh@compro.net) [020326 13:22]:
cd ./bin/crushftp /usr/bin/nohup java -jar CrushFTP.jar
Try /usr/bin/nohup java -jar CrushFTP.jar &
No, that won't work. Sorry, I didn't realize he was trying to run an X client...You need to do ssh -X -f remotehost '/path/to/java -jar CrushFTP.jar' -f forces ssh to background itself before exec'ing the command and will keep the connection alive when the shell it was spawned from dies.
But he is actually loging on the the remote box acording to his command sequence:
ssh -l <username> -X 10.XXX.XXX.XXX enter password for username export DISPLAY=XXX.XXX.XXX.XXX:0 cd ./bin/crushftp /usr/bin/nohup java -jar CrushFTP.jar
In which case /usr/bin/nohup java -jar CrushFTP.jar & should work right??? Although you are correct that ssh -X -f remotehost '/path/to/java -jar CrushFTP.jar' should also work from the local machine so he won't have to log in to the remote. -- Mark Hounschell dmarkh@cfl.rr.com