ftp and crontab

thx, when i do ping ipaddress from windows commands prompt
i get the result fine..no problems at all

but when i do ping ipaddress from the shell then i get this
/sbin/ping: Permission denied.

and when i try to run the script from the shell using ./tst.sh
i get
ftp: connect: Operation timed out
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.

Hi.
It seems a question of communications.

/sbin/ping: Permission denied

Probably means you do not have perms to execute the ping command.

About the ftp session, are both machines on the same network?
If not, perhaps you need to enable ftp in your firewall...

thx grial,

actually firewall was disable when i had tried to do ftp from unix to c drive

U cannot ftp from Unix system to Windows system.

The reason being ftp on Windows is always a client, while ftp on Unix can run in client as well as server mode.

The only way to transfer files between Windows and Unix through ftp is :

Windows ==> Unix .

Why? That's not true, I usually do it. I promise. :slight_smile:

Hi,
Even i have the same requirement........
ftp a file from UNIX to Windows machine.........
I tried the script given in this forum
i'm getting an error
ftp: connect: Connection refused

I'm trying to ftp file to my local windows machine...........
Also what shd i do if i have to ftp a file to remote windows mahcine??
Please help .thanks in adhavnce

To ftp from UNIX environment to your local machine you need a ftp server running on you PC to service the incoming requests. Once you have that then try this test.
Then try

ftp <IP address of your PC>
Enter username
Enter Password

See if you can successfully open an ftp session. Then you could create a shell script in UNIX to ftp files to your PC.

Even for all this to work you will need your machine switched on and your ftp service up and running at the time the crontab kicks off.

Hi User'
are u was installed FTP Server in your windows box??
I just think that can't work if not installed ftp server in windows machine..