print `cp source dest`; # within ` `, you can run any shell command.
That's it =)

Smiley Connie =)


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 3:40 PM
Subject: Question about copying files.


> I've got a script that parses out a mail file into an array then uses 
> the print command to copy the array to another location. Effectively I'm 
> just copying one file from its original location to another location, 
> I'm using a cgi script to do this in, how can I call a "cp" command from 
> within a cgi script? I'm thinking of doing something like:
> 
> sh "cp filename1.txt /new/path/filename2.txt";
> 
> Would this be enough, or do I have to require another .pl script from 
> Perl? Totally lost here, so any help would be appreciated.
> 
> His Faithful Servant,
> Mark
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to