Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing scripts on a clock 1

Status
Not open for further replies.

theEclipse

Programmer
Dec 27, 1999
1,190
US
I am writing a perl web program that will need to execute a script with certain parameters x time later....

is this something I should do directly with linux or inside apache?

Robert Carpenter
"Disobedience to conscience is voluntary; bad poetry, on the other hand, is usually not made on purpose." - C.S. Lewis (Preface to Paradise Lost)
ô¿ô
 
Code:
man at
is what you're looking for:
Code:
at now + 3 minutes 
perl thePerlScript.pl
I don't know how to start 'at' from perl, but there should be a way.
Perhaps perl has a build-in functionality to do this more elegant.


seeking a job as java-programmer in Berlin:
 
Sure, Perl can run system calls.
Code:
system ('whatever command line syntax on whatever OS perl happens to be running on')
 
stefan-

thanks. I think that is what I am looking for. I cant test it at the moment though....

Also, I think that in perl you can use backticks (`) to run a command. But I am not quite sure about that....I will have to look it up.

Robert Carpenter
"Disobedience to conscience is voluntary; bad poetry, on the other hand, is usually not made on purpose." - C.S. Lewis (Preface to Paradise Lost)
ô¿ô
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top