1829359 Members
1999 Online
109991 Solutions
New Discussion

Re: Auto copy batch file

 
abdullah shboull
Frequent Advisor

Auto copy batch file

I want to automatic copy image (JPG) from folder in XP OS and paste it and overwrite it if exist in linux OS.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Auto copy batch file

Shalom,

There is a program for XP/Vista/yuckware called winscp

Go to download.com and search for it.

It will do this job.

You can also use ptty to do the job.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
abdullah shboull
Frequent Advisor

Re: Auto copy batch file

Thanks a lot for your response.
Actually I need to use automatic snap shot program by XP OS and save the image at a folder, then I want to use a program that automatic copy (like a batch file or script code) this image every five minute and paste it and overwrite it if exist in Linux folder.
Matti_Kurkela
Honored Contributor

Re: Auto copy batch file

SEP's suggestion has merit. The PuTTY package includes pscp, a command-line tool for file transfer.

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html#pscp

Find the correct pscp options for your situation, so that pscp won't need to ask you anything more after entering the command (i.e. set up SSH key authentication or use pscp's -pw option to specify the password on the command line).

When you know the command that will copy the file where you want without further interaction, use the Task Scheduler function of Windows to run it every 5 minutes:

http://support.microsoft.com/kb/308569

The UNIX way: if you have a complex task, split it into simple parts. Find tools that can each do one part of the job. Then use them all together.

MK
MK