View previous topic :: View next topic |
Author |
Message |
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3703 Location: Rasi, Finland
|
Posted: Sun Aug 31, 2008 6:08 pm Post subject: 'screen + cron + @reboot' does not work propely |
|
|
I have several problems when I start screen session via cron line: Code: | @reboot screen <program> |
For example KDE bianries aren't in my $PATH (I sometimes need dcop).
Also if I create a new window within the screen bash does not go trough ~/.bashrc (or ~/.bash_profile).
Does some of you have any trick to make screen start propely from cron? _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Wed Sep 03, 2008 8:49 am Post subject: |
|
|
you can either specified the full path to your binaries
or may be use the stuff command (don't know how it will work with cron) :
Code: | @reboot screen -S blah && screen -S blah -X stuff "program^M" |
Or even create a dedicated screenrc for that matter:
Code: | @reboot screen -c /etc/mySupaSpecificScreenrc |
Hope this helps _________________ The End of the Internet! |
|
Back to top |
|
|
|