[SOLVED] keep process running even after telnet session has been deliberately ended
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
keep process running even after telnet session has been deliberately ended
I have ubuntu 10.04 & I telnet to windows vista.
Even if I create a hidden process (http://www.commandline.co.uk/chp/ ) from batch file . It seems the process gets killed when I end connection at port 23 to host.
Maybe , the hidden process created is still child of current telnet session so tree is killed as session ends.
Is there a way to keep process running even after telnet session has ended ?
Whatever script or command you start in a session, telnet and/or SSH, gets terminated if you disconnect the session, even if you've put it in the background for as far as I know. Have a look at the nohup command to disconnect your command/script from the console/session:
Actually I am running
'wget -b link -a log-file'
which gave message
'process sent to background with PID 2360'
but after I logout & login again , then I don't find wget.exe in tasklist which clearly indicates child wget of previous session ended.
Is there a way to create a process independent of telnet session ?
Sorry, didn't read correctly in your first post. If you connect from Linux to Windows and the process on the Windows side gets killed when you disconnect, then you should look at a Windows forum for a solution since the 'problem' clearly is Windows related. The nohup is indeed a Linux command to avoid the problem you have with Windows.
time /t @ this is current time
set /p tod=time to schedule task :-
at %tod% <command/batch-file>
You can verify using
schtasks /query /v /tn at<job ID>
This works in windows vista.
Still , I will say commands of linux are far ahead of windows (like there is no alternative of 'nohup' in vista)
Although it being a Windows solution, thanks for sharing, sure it will be of use to others. And I completely agree with you, Linux is way ahead of Windoze on various things.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.