Operating System - HP-UX
1833032 Members
2356 Online
110049 Solutions
New Discussion

Cannot FTP from Unix to Windows

 
Dennis Handly
Acclaimed Contributor

Re: Cannot FTP from Unix to Windows

>it transferred the files from unix to windows and immediately after that with (mdelete *) command deleted all files from the windows drive instead of deleting from the unix

 

It's doing what's documented.  ftp works on remote system.  Unless the command starts with "l" as in lcd.
 > I really got hurt with this crap script which got executed in the wrong manner.
Make sure you understand what each command does, especially before doing mass changes.

>The obvious answer to your deletion problem is to remove that line from your script and replace it with a "rm"

 

Right, that way you could possibly do some through analysis of the ftp output and check for errors.

You could also use inside ftp: !rm *