mersenneforum.org Keeping processes alive after logoff
 Register FAQ Search Today's Posts Mark Forums Read

 2021-04-23, 15:38 #12 Xyzzy     "Mike" Aug 2002 201268 Posts Very useful: https://tmuxcheatsheet.com/
2021-04-23, 16:26   #13
Nick

Dec 2012
The Netherlands

2·859 Posts

Quote:
 Originally Posted by chalsall Yup. 2> is STDERR, while > is STDOUT.
Nitpick: C is case sensitive so it's best to write these in lower case, as they are defined there. (Were they capitalized in MS-DOS?)

More generally, it's strange that the default effect of nearly all signals is to kill processes.
It's like having a postman who goes around killing everyone who receives a letter
uinless they have made alternative arrangements.

2021-04-23, 20:21   #14
chalsall
If I May

"Chris Halsall"
Sep 2002

23·1,231 Posts

Quote:
 Originally Posted by Nick Nitpick: C is case sensitive so it's best to write these in lower case, as they are defined there. (Were they capitalized in MS-DOS?)
SQL is case insensitive. And STDIN/OUT/ERR are for human documentation; they're just INTs in the code.

To your question, no idea. I never did Deficient On Startup (DOS)...

Quote:
 Originally Posted by Nick More generally, it's strange that the default effect of nearly all signals is to kill processes. It's like having a postman who goes around killing everyone who receives a letter uinless they have made alternative arrangements.
Don't disagree. But you play with what you've been given...

Last fiddled with by chalsall on 2021-04-23 at 20:23 Reason: s/INTS/INTs/; # I'm in that mode...

 2021-04-24, 16:01 #15 chris2be8     Sep 2009 2·52·43 Posts I've made extensive use of nohup. Eg (from my command history): Code: nohup getsmall.all.sh >>getsmall.all.log27 2>&1 & tail -f getsmall.all.log27 That runs a script I wrote myself on a system at another site. If my internet connection reboots it keeps running, I just have to log on again and tail the log to see how far it's got. Chris
2021-05-17, 00:51   #16
PhilF

Feb 2005

29B16 Posts

Quote:
 Originally Posted by chris2be8 I've made extensive use of nohup. Eg (from my command history): Code: nohup getsmall.all.sh >>getsmall.all.log27 2>&1 & tail -f getsmall.all.log27 That runs a script I wrote myself on a system at another site. If my internet connection reboots it keeps running, I just have to log on again and tail the log to see how far it's got. Chris
Yes, that's nice. It looks like everyone named Chris is a good sysadmin!

2021-05-25, 23:48   #17
drkirkby

"David Kirkby"
Jan 2021
Althorne, Essex, UK

44710 Posts

Quote:
 Originally Posted by bur I have a headless machine that I only access via SSH. I'm currently using tmux to keep yafu/cado etc running after I log off. Is that the best choice here?
"screen" works well.

1) Install screen, if it is not already installed.

2) Type screen
3) Start your process. There is no need to redirect the output to a file, but I personally choose to.

$screen$ mprime -d >> mylog.txt
Control A
The letter D.

Dave

 Similar Threads Thread Thread Starter Forum Replies Last Post TheMawn LMH > 100M 25 2016-04-18 16:11 ATH Soap Box 8 2010-04-14 00:48 retina Forum Feedback 12 2006-11-12 07:53 JuanTutors Software 2 2004-07-06 14:34 markhl Software 8 2003-07-07 16:00

All times are UTC. The time now is 07:26.

Sat Sep 18 07:26:44 UTC 2021 up 57 days, 1:55, 0 users, load averages: 2.41, 1.58, 1.35