The content of my script is:
cp -b /home/ionadmin/my_script5.sh \\192.168.0.174\pgm
cp -b /home/ionadmin/my_script5.sh \\192.168.0.174\proton
I've done the following 3 tests :
I first copied a local file from the Ubuntu server to another folder within the ubuntu server and that worked fine.
Second, I tried to copie a local file from the Ubuntu server (Ubuntu 10.04.2 LTS) to a Windows server (192.168.0.174). The Windows is freely accessible, there is no proxy, firewall or any acces restriction. Anyone can go on it. Does it work? Well, it depends how we interpret the feedback: I do not get any error message on screen but after 30min still nothing is copied.
I try to do the same in command line but all tentatives failed:
If I execute the command : « ssh sudo cp my_script5.sh //192.168.0.174 »
- I get the error message : « ssh: Could not resolve hostname sudo: Temporary failure in name resolution »
Althought I'm at the root, I execute the csame command with the full path of the file to be copied,
- I get the same error message
If I do a normal transfer, I use the command « sudo cp my_script5.sh //192.168.0.174 »
- I get an invitation to type in my Ubuntu password and that's what I do.
- The system brings me back to the root and no further message.
I've done a ping, from the Ubuntu server to the Windows server and it was successfull.
Is there a way to complete the script or get to know where it blocks? To complete you with some usefull information: The Ubuntu server is managed by another department and they have granted me (Network Administrator) with full access to some specific folders so I'd be able to copy the requested files. The fact is that I have no acces to create a CRON or create a cache file.