hello
i am trying to do the following
exec(“copy e:\data\stocks\watchlists\. E:\data\MergedDb
\watchlists\.”)
puts “copied”
My prog execution stops after exec is done. not sure why. how can i
run a command and continue processing after the command.
On Jan 9, 2008 10:15 PM, Junkone [email protected] wrote:
exec(“copy e:\data\stocks\watchlists\. E:\data\MergedDb
\watchlists\.”)
puts “copied”
My prog execution stops after exec is done. not sure why. how can i
run a command and continue processing after the command.
when #exec executes, it will replace the (whole) current running
program/process; thus you wont reach the “puts copied” portion…
try system or the backticks “`”
Junkone wrote:
My prog execution stops after exec is done. not sure why.
Because that’s how exec works.
how can i
run a command and continue processing after the command.
system
HTH,
Sebastian