LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-13-2008, 06:31 PM   #16
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35

yes, that would exit right away. all you're doing is changing directory, which finishes (either successfully or unsuccessfully) and returns. the -f option is for commands more like: 'ssh -f host xterm', where the remote command will remain in a run state for a while, like until you are done with your xterm session.

use screen or nohup
 
Old 08-13-2008, 06:45 PM   #17
maas187
Member
 
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 210

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by maas187 View Post
ok . i get what u saying ..

Lol sorry this is like a chat room for me .

i tried
$ssh username@remoteserver.com -f "cd Folder" ...


but the thing is it runs and exits .. i checked the status with netstat -at ..

i need it to be running all the time ?
EXECELENT ... Worked Pefecly ... thanks man .
 
  


Reply

Tags
rclocal, screen, startup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
wi-fi startup script Nodren Linux - Wireless Networking 6 05-09-2005 08:56 AM
startup script djinniyah Linux - Newbie 2 09-18-2003 05:07 AM
What's a startup script? rdaves@earthlink.net Linux - Newbie 1 05-22-2001 03:24 AM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration