Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Problem with system ()

by MZSanford (Curate)
on Mar 18, 2003 at 14:20 UTC ( #243984=note: print w/ replies, xml ) Need Help??


in reply to Problem with system ()

You may want to use cwd in your program, then use system(). Beware of the fact that on most systems (and i suspect Win32 too) system() opens a new shell for each call. So, your first would chage directory and then close, and your second would delete files in the current directory.

As a side note, if you are deleteing files you may want to look at unlink, which will let you check the status of your deletes. (glob + unlink = gooood)


from the frivolous to the serious


Comment on Re: Problem with system ()
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-08-31 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls