LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2005, 03:50 PM   #1
TheLostPropet
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
Post Schedule on file creation


Hello All, I am new to linux and i am looking to run a script i have created when a certain file is created. I was going to use the crontab to run my script every minute and use an if statement in the script to determine wether the file exists and then run the procedure if it does. This seems a bit overkill tho and i was wondering if there is a better way to do this? Thanks in advance.

Phil

Last edited by TheLostPropet; 04-09-2005 at 03:51 PM.
 
Old 04-09-2005, 05:08 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
"i am looking to run a script i have created when a certain file is created. I was going to use the crontab to run my script every minute and use an if statement in the script to determine wether the file exists and then run the procedure if it does. This seems a bit overkill tho and i was wondering if there is a better way to do this?"

Why can't the program or script which creates the file also run the script that you plan to put in crontab?

-------------------------
Steve Stites
 
Old 04-09-2005, 06:20 PM   #3
TheLostPropet
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry i should have explained my situation a little better, the program that creates the file will be running on a windows server, using a share the programs creates the file to trigger the running of the script.
 
  


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
Zone File Creation mr_dizzle Linux - Newbie 4 10-20-2005 09:08 PM
ls -al file creation date blackzone Linux - Newbie 2 08-23-2004 02:31 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 11:36 PM
new file creation permissions dskny Linux - Software 3 03-03-2004 11:32 AM
file creation in C ratheesh Programming 1 01-08-2004 06:39 AM


All times are GMT -5. The time now is 04:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration