LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2004, 09:30 PM   #1
jeffkjo
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 17

Rep: Reputation: 0
Task Scheduling


Hi, I work at a radio station and we use a computer (currently running Windows) for DJ's to read scheduled announcements over the air. The system is set up so that the announcements (which are word documents, but could be in any format), automatically open at their scheduled times in word every day (most of these run for several days to two weeks, being read multiple times a day.)

Anyway, the computer continuously becomes infested with viruses and spyware, and cleaning it off bi-weekly has gotten rather annoying.

I'm familiar with KDE and would like to install SuSE 9 or some other KDE distro onto the machine, but I don't want to do so unless I know I can do something similar with KDE. As well, these announcements are also set to automatically close after being open for 30 minutes. This is done so that they don't build up on the screen if there is no one in the studio for several hours (which is fairly typical, especially on weekends.)

Is there an easy (or not so easy) way to setup ongoing scheduled tasks to open AND close files like I currently have with the windows task scheduler?
 
Old 12-01-2004, 11:01 PM   #2
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi,
You can probably work up some dcop magic. Also, cron might help you (for example, swriter /home/radio/announcement.sxw), then when you want it to close, have cron run killall swriter.

This document might help you with cron.
--
Taj
 
Old 12-01-2004, 11:12 PM   #3
jeffkjo
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
killall

Yea, I had pondered about cron. My expectation was that it could do it, but I worry about the 'killall' tag. While our DJ's really shouldn't be using a document editor for any other reason, I'd hate for someone's work to get lost for some reason. Without knowing specific process ID's (which, in my understanding, would change each time the application is opened anyway), can I specifically kill just one instance of a program (by referencing the filename somehow?)

DCOP I'll have to mess with. What would I have to do to get it to schedule tasks?

Last edited by jeffkjo; 12-01-2004 at 11:13 PM.
 
Old 12-02-2004, 09:33 AM   #4
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Quote:
Yea, I had pondered about cron. My expectation was that it could do it, but I worry about the 'killall' tag. While our DJ's really shouldn't be using a document editor for any other reason, I'd hate for someone's work to get lost for some reason. Without knowing specific process ID's (which, in my understanding, would change each time the application is opened anyway), can I specifically kill just one instance of a program (by referencing the filename somehow?)
You can find the PID of a running process by working up some magic with "ps aux" and then using grep and awk to (a) filter the result, and (b) return the PID which then you can use kill <PID>.

I'm no grep or awk expert, maybe asking in the ##linux irc channel (irc.freenode.net), or somebody else here...

Quote:
DCOP I'll have to mess with. What would I have to do to get it to schedule tasks?
Donno...I'm no KDE expert, I just suggested it because it popped into mind. The folks over at #kde-devel (freenode/irc.kde.org) might offer some suggestions...

HTH,
--
Taj
 
Old 12-02-2004, 09:37 AM   #5
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
These pages might help you:
http://www.tek-tips.com/viewthread.c...=943012&page=1
http://archives.neohapsis.com/archiv...1-07/0006.html
http://www.monkey.org/openbsd/archiv.../msg00029.html

Google might have some more to offer (those were the first few results) for "extract pid from ps awk" (w/o quotes).

HTH,
--
Taj
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling scripts linuxhippy Slackware 3 11-10-2005 09:56 PM
at (the task scheduling program) won't work using regular user BL/|CK S3RP3NT Linux - Software 3 03-20-2005 03:32 AM
Pthread scheduling... msriram_linux Programming 3 11-21-2004 03:57 PM
scheduling again nautilus_1987 Linux - Software 2 07-04-2003 07:53 AM
Kernel Scheduling netkern Linux - General 1 04-14-2001 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration