LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-09-2005, 08:57 AM   #1
tuxandme
Member
 
Registered: Aug 2003
Posts: 33

Rep: Reputation: 15
at command scheduling and perl


I am trying to let a perls script run on a certain time
but when i do:
at TIME DATE < script
where script is a perl script
it doesn't do anyting
but when i do:
at TIME DATE < script2.sh
and script2.sh is:
#!/bin/sh
./script

it works

Can someone help me with the question:
why doest at run my normal perl script directly?
tnx...
 
Old 06-09-2005, 05:07 PM   #2
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
The at commands reads lines from standard input and executes them using /bin/sh.

By sheer coincidence, your regular script contains lines that are executable by /bin/sh (well, not sheer coincidence, that's why it is called a shell script)

Anyway, at will try to execute your perl script using /bin/sh, which will most likely result in a pile of errors, since /bin/sh usually can't make sense of perl commands.

Groetjes,

Kees-Jan
 
  


Reply



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
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
command arguments in perl djgerbavore Programming 1 12-30-2004 08:06 AM
what is the echo command in perl? hamish Programming 5 12-14-2004 08:31 AM
Scheduling a Tar command delalynd Red Hat 4 10-26-2004 03:29 AM
Scheduling priority for the 'nice' command savoiu Linux - Newbie 2 05-18-2004 11:35 AM

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

All times are GMT -5. The time now is 10:22 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