The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
50 views

rsync termiates after a while unexpectedly

I run a rsync command with nohup in ssh session, but after a while it returns this error: rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [generator=3.0.9] rsync error: ...
0
votes
1answer
19 views

How to run putty with -m command line *and* get log?

I'd like to launch putty and run my script automatically, it works, but I can't save the logs (I need them to debug)! The way I call putty: "D:\Some-Path\putty\PUTTY.EXE" -t -load "Server - ...
0
votes
1answer
39 views

Rotating a nohup.out logfile

There are a few questions on how to rotate the output file generated by nohup. Most of the answers say to use logrotate with the copytruncate option. However this does not actually work -- when the ...
2
votes
4answers
238 views

how to rotate nohup.out file without killing my application

My nohup.out file is growing fast. I am running an application in the background, it's writing nohup.out file, now I need to rotate nohup.out file without killing my application. Can this be done?
0
votes
1answer
38 views

nohup.out is no longer being appended

I have a Ubuntu Linux ec2 instance that's running on AWS. I used the following command nohup php script.php so that when I disconnect from the instance with SSH, it still runs. The script contains ...
1
vote
1answer
230 views

Why does my command stop when I exit SSH? [closed]

I am running the following command in a loop (without notable memory leaks) as a cPanel user: nohup php ~/www/app/console.php run clean 1> /dev/null 2> ~/www/logs/run_clean.log & But when ...
0
votes
2answers
586 views

How to kill the process using the name of the program instead of PID?

I started my Python program in the background using nohup as mentioned below - nohup zook.py & Now I am trying to kill this process so I did the ps command as mentioned below ...
4
votes
1answer
696 views

nohup vs screen vs ? for manually starting daemon processes

When I need to start a background process on a low-importance server, I tend to use nohup: nohup ./server.sh & Most colleagues seem to prefer screen: screen -D -R mydaemon ./mydaemon.sh ^A ^D ...
0
votes
1answer
129 views

nohup create multiple process

I am using nohup for the script run inotify command, because inotify stop when I exit from terminal so I want the script to run on background. so I run the script like this nohup /path/to/script.sh ...
0
votes
2answers
186 views

How to run rsync without staying logged in?

I want to run the following rsync command to transfer a folder from a remote server to my current one sudo -r -a -v -e 'ssh -p portnum' username@serverip:/home/path/* /home/path this directory is ...
2
votes
3answers
409 views

how to convert a running process into a nohup and keep a logfile

I have a process currently occupying a terminal ]$ command some_argument I want to exit from the terminal and go home, but in the mean time I don't want to kill this running process. For the ...
2
votes
2answers
506 views

Remote synchronous-then-asynchronous execution with SSH

TL;DR I want to remotely execute a script that begins synchronously (so that the local ssh command fails if the preparatory commands fail) and then goes asynchronous, thus terminating the local ssh ...
2
votes
0answers
129 views

Nohup SLEEP does not hold TTY port open

We recently upgraded from Centos 4.3 to 5.9 and have come across a perplexing condition with regard to a very few direct-character printers we use. Since the beginning of Unix we have placed a command ...
3
votes
1answer
105 views

Move a running process in background and keep it running even if you disconnect

You already have a running process and you want to put it to run in background. If you want to be sure that this will still run after you close you ssh connection, what should you do? Note: you are ...
0
votes
1answer
868 views

How do I prevent a nohup process from being killed when ssh connection fails

I'm having an odd problem. I have a server process that gets started with nohup, and persists across logout and re-login just fine. However if I leave myself logged in and then get the "broken pipe" ...
1
vote
1answer
1k views

nohup - no such file or directory

I'm trying to execute the following command on my CentOS 6.3 x64 server: nohup "/usr/local/bin/php -v" The result is: nohup: ignoring input and appending output to `nohup.out' nohup: failed to run ...
2
votes
2answers
785 views

trap “” HUP v.s Nohup ? How can I run a portion of shell script in nohub mode?

I want to run a shell script over the weekend, but I wanna make sure if the terminal loses the connection, my script won't be terminated. I use nohup for the whole script invokation, but I also want ...
4
votes
4answers
4k views

nohup multiple sequential commands

I need to nohup two commands, one after another. The second command has to be executed AFTER the first command. Here are the commands: tar -zcf archive.tar.gz.tmp mydir mv archive.tar.gz.tmp ...
5
votes
2answers
3k views

Redirect nohup to stdout

Is it possible to let a process started with nohup, write to stdout instead of in a file? or maybe in the file and on the screen? nohup python start.py & writes to nohup.out, but I'd like it to ...
1
vote
0answers
276 views

Why does my long-running nohup process quietly stop processing on Mac OSX?

I have a Ruby rake process that does a whole lot of intensive data loading and manipulation. When run a against a particularly large file, the process will run for several hours (which is fine), but ...
3
votes
3answers
2k views

What is does the ampersand (&) symbol mean with `nohup`?

Ive seen tons of examples where a & follows the end of a command string, but I can't seem to find an explanation on what it does. It's not even in nohup's man page. Is this a shell thing? ...
1
vote
1answer
363 views

reattaching a process started with nohup?

Is it possible to reattach a process started with nohup? For example, start in a terminal: nohup tail -f /dev/null & Close the terminal. Now open a new terminal. How do you reattach the ...
0
votes
4answers
629 views

nohup command on Mac

I connect to some mac machine using SSH and run a command similar to: nohup /var/root/install.sh param1 param2 </dev/null >/var/root/vvv.out 2>&1 & echo '' ; echo ERROR_CODE:$? It ...
1
vote
2answers
961 views

Estimating MySQL Query Runtime

I ran a MySQL query from command line using the following: nohup mysql --user=root --password=XXXXXXXXX database < report.sql > results.tab This query is extensive (5000 lines) and running a ...
0
votes
2answers
506 views

How to run at boot a program that will run until shutdown

I am using Debian (6) and need to run at boot an X server (without a login manager). What is the best way to do this? From what I've read, the usual way is to have a script in /etc/init.d. I created ...
1
vote
1answer
407 views

Mysterious per-session CPU limiting?

TL;DR: CPU-hungry processes are sharing cores on a multi-core server while other cores sit idle, whereas I expect the Linux scheduler to distribute jobs evenly across cores. What could cause this ...
0
votes
1answer
211 views

Shutdown server in background using PHP

I'm trying to shutdown an Ubuntu machine from PHP and am running into an issue if I want to delay the shutdown. The PHP line I'm using is: exec("sudo shutdown -h +5 &", $output); Where 5 is ...
1
vote
2answers
630 views

terminate a processed launched by nohup

I have loaded debian etch into my NAS and I am trying to use it to routinely extract information from a website. Since there are quite a lot of pages to download, I used the nohup command, like this: ...
2
votes
3answers
348 views

How can I return to nohup after logout?

I'm working on an AIX and cannot install screen but want to use its capabilities. Basically I want to be able to run a session (maybe logout), then the same user but logged in again to be able to get ...
6
votes
2answers
3k views

rotate nohup out file (nohup.log)

is there a 'native' way where i can rotate nohup out file ?
3
votes
4answers
4k views

How do I find out the process id of the backgrounded process?

I've got a command (program) that I'd like to run with nohup and background it. Like nohup command > logfile.txt & How do I find out the process ID? I would like to be able to write the ...
2
votes
4answers
2k views

Using nohup on Solaris 10

I need to transfer a large number of files over SFTP (only between Solaris servers) which takes a very long time. I cannot keep my PC on for this duration. I tried: nohup sftp server1 While the ...
0
votes
3answers
2k views

Run netcat in background on Ubuntu Lucid 10.04

I am trying to do a pg_dump from one server and simultaneously restore at the other server. The command on source server (192.168.3.94): pg_dumpall -v | nc 192.168.3.95 4000 The command on the ...
2
votes
1answer
1k views

Nohup linux command waits for an additional return, how do I prevent this?

I'm running the following inside a bash script: nohup java server_program.jar & I want that to start running and go about its merry way. However, for some reason it says that it is ignoring ...
1
vote
3answers
1k views

Virtualbox: prevent a virtual machine to go down after I log out from the consolle I lanched the VM from

I login remotely to a machine with Virtualbox installed by launching: ssh -Y root@virtualbox After that, I launch a Virtual Machine: nohup VBoxSDL --startvm vm1 or nohup VBoxSDL --startvm vm1 ...
3
votes
1answer
1k views

How can I flush stdout for a process under nohup?

Is there a way to flush the buffer that nohup buffers stdout? From what I read in various places (eg. some place) is that I can modify the behaviour from within my programm. But that would be specific ...
2
votes
2answers
1k views

How do I get nohup.out flushed more often?

On Ubuntu 10.04, I have a long Python program that prints a bunch of output; I run this under "nohup". However, it waits until the end to put all the text in nohup.out. When I run similar programs ...
2
votes
1answer
2k views

Can I nohup/resume an existing tar process initiation in a ssh session?

First, if I stop a tar process, will it resume from where it left off or will it have to go through all the directories again (a lot of directories and files). Second, am I correctly "disown"ing this ...
0
votes
2answers
1k views

can you run a shell command via nohup at later time?

I'd like to run a script at 6pm on a remote server but don't want to wait around to trigger it. I don't want to use cron since it's a one time deal. Can I do something like "nohup myscript &" ...
4
votes
4answers
345 views

Linux process management

I started a long running background-process (dd with /dev/urandom) in my ssh console. Later I had to disconnect. When I logged in, again (this time directly, without ssh), the process still seemed to ...
3
votes
5answers
5k views

Using nohup when initial input is required

On a linux system is there any way to use nohup when the process that is being nohuped required input, such as an rsync command that needs a password to be entered but will then run happily on its ...
4
votes
4answers
27k views

There is any way to run processes in the background in Windows? nohup equivalent for windows

nohup runs a process in the background. There is any equivalent for Windows?
4
votes
6answers
3k views

job control and ssh

I can't seem to figure out a decent way to manage jobs over ssh. I want to start a job in an ssh session, logout, log back in, do a fg, check on the job, logout, then repeat the whole process. nohup ...
168
votes
11answers
53k views

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in ...