Hello
A friend wants to use FTP to transfer her files onto a server. This process is carried out from the command prompt of a WinXP machine over to a Linux server, so she has to type
ftp
open 123.456.789.123
bin
hash
put C:\file.file /some/dir/file.file
bye
I'm writing a Perl script to automate this process. It works as follows:
1. User enters filename (i.e. C:\file.file)
2. program puts filename into put command
3. program starts FTP
4. program Transfers file
5. everything's hunky-dory : )
However, i'm stuck between step 3 and 4: when I open FTP (as follows: "system('ftp');"
I'm at another prompt and cannot issue any further "system" commands!
anyone know of a way around this? I'm thinking a batchfile might do it but i'm not sure...
Thanx in advance for any help
TheSaltyDuke
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)
A friend wants to use FTP to transfer her files onto a server. This process is carried out from the command prompt of a WinXP machine over to a Linux server, so she has to type
ftp
open 123.456.789.123
bin
hash
put C:\file.file /some/dir/file.file
bye
I'm writing a Perl script to automate this process. It works as follows:
1. User enters filename (i.e. C:\file.file)
2. program puts filename into put command
3. program starts FTP
4. program Transfers file
5. everything's hunky-dory : )
However, i'm stuck between step 3 and 4: when I open FTP (as follows: "system('ftp');"
anyone know of a way around this? I'm thinking a batchfile might do it but i'm not sure...
Thanx in advance for any help
TheSaltyDuke
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)