|
Sep 5 |
comment |
Prevent GNU screen from terminating session once executed script ends Hm... seems you're my life saviour! :] Extending your solution with export IGNOREEOF=1 to prevent accidential termination with Ctrl+D should give me the perfect solution, I've been looking whole long evening. THANKS! :] |
|
Sep 5 |
comment |
Prevent GNU screen from terminating session once executed script ends This script is executing two UDP listeners written in PHP. Though both are executed as daemons (with & at the end), due to buggy server (QNAP), they're are terminated when session ends (I was told, they shouldn't on normal Linux, if executed with &). So I'm not looking to do anything after start_udp_listeners.sh finishes, only how to prevent session from being terminated. As long as it isn't, my PHP listeners are working just fine. |
|
Sep 5 |
awarded | Citizen Patrol |
|
Sep 5 |
comment |
Prevent GNU screen from terminating session once executed script ends Cool! Thanks for an explanation! So... back to the question... is there any way to run a command inside a detached screen/window and NOT to end that session, once command execution ends? Also, please take a look at updated question. Thank you. |
|
Sep 5 |
awarded | Editor |
|
Sep 5 |
revised |
Prevent GNU screen from terminating session once executed script ends added 283 characters in body |
|
Sep 5 |
comment |
Prevent GNU screen from terminating session once executed script ends So... is there a way to open two windows (using command line only, no keyboard combinations), one to execute a script and second to prevent screen from closing? BTW: I still don't get the idea behind! If I call screen -dmS name, I create a detached window, which also has nothing left to do. But it isn't automatically closed! But when I want to execute something in that detached screen, it ends once execution is done. Why? I don't see logic here. Can have window doing nothing, but can't have window doing something and then doing nothing? |
|
Sep 5 |
asked | Prevent GNU screen from terminating session once executed script ends |
|
Jul 26 |
comment |
IO Error in rsync while doing everyday backup Out of fsck group I have only e2fsck available on my machine. Am I right, that it can only check 'ext2' paritions? Since all other options failed, I have to format my external hard disk, but NAS gives me only ext3 and ext4 options. Does it means, that even after formatting I'll again stay with no tool for checking file system? |
|
Jul 5 |
comment |
IO Error in rsync while doing everyday backup "All files must have a name"? Under Linux, doesn't seems to be true. As "file with empty name" is reported by rsync, not me! :] |
|
Jul 5 |
awarded | Student |
|
Jul 5 |
comment |
IO Error in rsync while doing everyday backup @warl0ck: What are you talking about? ALL the error messages, that I get from rsync are already mentioned in the question. There are two kinds of error messages: " cannot send file with empty name in...", followed by "rsync error: some files/attrs were not transferred (see previous errors)". Nothing else. |
|
Jul 5 |
comment |
IO Error in rsync while doing everyday backup @jippie: (2) How can I give you filenames that rsync dosen't like, if we're talking about files without a name? :] I can only provide you with paths, where it finds these files. But these are just ordinary folders with docs, mp3, movies and this kind of data (multimedia) that I backup. |
|
Jul 5 |
comment |
IO Error in rsync while doing everyday backup @jippie: (1) Script is to long to paste, and this is not necessary. It is really simple. It contains only: preparation of text file, serie of calls to rsync (like that: /usr/bin/rsync --archive --delete --whole-file --verbose --human-readable --cvs-exclude --update --log-file="/backup/hp/docs.log" "/share/MD0_DATA/Docs" /backup/hp/ >> $MAILFILE) with throwing rsync results to that text file, e-mailing me that text file and deleting it. I even resigned from loop, because I had to many strange problems with it (lack of knowledge?) and replaced it with serie of rsync calls. |
|
Jul 5 |
awarded | Supporter |
|
Jul 5 |
awarded | Scholar |
|
Jul 5 |
accepted | IO Error in rsync while doing everyday backup |
|
Jul 4 |
awarded | Analytical |
|
Jul 4 |
asked | IO Error in rsync while doing everyday backup |
|
Jul 4 |
awarded | Autobiographer |