Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'screen + cron + @reboot' does not work propely
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3703
Location: Rasi, Finland

PostPosted: Sun Aug 31, 2008 6:08 pm    Post subject: 'screen + cron + @reboot' does not work propely Reply with quote

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
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Sep 03, 2008 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum