Unix / Linux: TCSH / CSH Shell Set Variable

in Categories , , last updated March 5, 2014

How do I set environment variables using c shell (tcsh or csh) under FreeBSD UNIX or Linux operating systems? How do I save variable using csh shell under Unix like operating systems?

How to: Run a shell script with nohup command

in Categories , , last updated October 16, 2007

Q. I’d like to run a command or shell script immune to hangups, with output to a non-tty or file. How do I use nohup command to run script called ~/utils/backup upload?

A. nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in background as daemons. Output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.

Run a script with nohup command

Type the command as follows to run a script called ~/utils/backup with ‘upload’ as argument to script:
$ nohup ~/utils/backup "upload" &