Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Command line loop vs. scheduler
Old 05-08-2008, 10:11 PM Command line loop vs. scheduler
Extreme Talker

Posts: 218
Trades: 0
What are the pros and cons of lauching a command file (.bat file) with a scheduler vs. just having the .bat file commands be in a loop like so:

Code:
:TOP
"C:\Program Files\  /file "C:\Folder\*.txt" /
move 0 "C:\EndFile\" ""

sleep 60

GOTO TOP
Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2008, 05:51 AM Re: Command line loop vs. scheduler
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No server admin in their right mind would let you run a batch file with a continuous loop.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-09-2008, 05:56 AM Re: Command line loop vs. scheduler
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
And what about error/exception handling, ressources limitation and such?
Once you have launched your loop, how do you pause/stop it ?

Scheduler have been developped to allow you more flexibility and control over your jobs.
I don't see any valid reason to short-circuit them.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 05-09-2008, 03:38 PM Re: Command line loop vs. scheduler
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Quote:
Originally Posted by chrishirst View Post
No server admin in their right mind would let you run a batch file with a continuous loop.
Yep, this is what cron jobs are for
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Command line loop vs. scheduler
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27212 seconds with 12 queries