mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2021-04-23, 15:38   #12
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

5·1,663 Posts
Default

Very useful: https://tmuxcheatsheet.com/
Xyzzy is offline   Reply With Quote
Old 2021-04-23, 16:26   #13
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

33278 Posts
Default

Quote:
Originally Posted by chalsall View Post
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.
Nick is online now   Reply With Quote
Old 2021-04-23, 20:21   #14
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5×997 Posts
Default

Quote:
Originally Posted by Nick View Post
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 View Post
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...
chalsall is offline   Reply With Quote
Old 2021-04-24, 16:01   #15
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2,179 Posts
Default

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
chris2be8 is offline   Reply With Quote
Old 2021-05-17, 00:51   #16
PhilF
 
PhilF's Avatar
 
"6800 descendent"
Feb 2005
Colorado

2×11×31 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
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!
PhilF is offline   Reply With Quote
Old 2021-05-25, 23:48   #17
drkirkby
 
"David Kirkby"
Jan 2021
Althorne, Essex, UK

3·149 Posts
Default

Quote:
Originally Posted by bur View Post
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
drkirkby is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is LMH > 100M still alive? TheMawn LMH > 100M 25 2016-04-18 16:11
Old pentium bug still alive? ATH Soap Box 8 2010-04-14 00:48
How do I logoff without clearing the cookies? retina Forum Feedback 12 2006-11-12 07:53
Processes cleanup JuanTutors Software 2 2004-07-06 14:34
Windows XP logoff sometimes kills Prime95 markhl Software 8 2003-07-07 16:00

All times are UTC. The time now is 14:56.


Wed Oct 27 14:56:07 UTC 2021 up 96 days, 9:25, 0 users, load averages: 1.39, 1.44, 1.29

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.