LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   after building jar i want to paste it in the linux server (https://www.linuxquestions.org/questions/linux-newbie-8/after-building-jar-i-want-to-paste-it-in-the-linux-server-748920/)

roobanbe 08-19-2009 11:48 PM

after building jar i want to paste it in the linux server
 
i am building jar through the command prompt in windows machine by writing some build scripts then i am manually copying that to the linux server using winscp. can i automate it.

i mean i want a script which will copy that jar from the windows machine to linux server.

can any one help me for this?
plz..!

thanks & regards,
P. Rooban

timvandijk039 08-20-2009 12:31 AM

Hi,

An possibility is to create a share on the windows-host where the jar file is located. Mount the share from the linux host and create a simple copy script which will be executed by the cron daemon on the linux host.

Mount Windows share from linux
Code:

mount -t cifs -o username=xxx -o password=xxx -o workgroup=xxx \\hostname\sharename mountpoint
(workgroup can be replaced with domain=xxx if nescesary)

Hope this helps.


All times are GMT -5. The time now is 01:18 PM.