LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-22-2008, 07:28 AM   #1
Tomek58
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Rep: Reputation: 0
Cron - restart screens - how?


Hello!
I have 2 servers in screens. I would like restart all screens every day at 12.00 pm. I must to do it, but i don't know how.
 
Old 11-22-2008, 11:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,442

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Are you talking about the program screen(1)? Why do you need to restart your terminal sessions?
 
Old 11-22-2008, 07:23 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 82
Code:
/etc/init.d/screen-cleanup restart
might be the command that you are looking for.

Last edited by jstephens84; 11-22-2008 at 07:26 PM.
 
Old 12-26-2008, 11:26 AM   #4
Tomek58
LQ Newbie
 
Registered: Nov 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks.

I wrote script: restart.sh , and I added it to crontab.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron restart script wont work! ThaHabbis Linux - General 3 03-16-2007 04:38 AM
Why do I have to restart cron each boot? ericcarlson Linux - Software 4 02-14-2007 05:20 AM
Crond Dead But Subsys Locked, cannot restart cron services jmm8142 Linux - Software 4 05-23-2005 12:41 PM
Cron job to check/restart network connection? mac_phil Linux - Networking 6 09-01-2004 01:51 PM
cron job to restart process if dead gborrageiro Linux - General 3 09-25-2002 11:55 AM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration