08-08-2011
use smbget command in your script to copy from local(XP) to unix machine.
or
mount the windows FS in to unix machine and use normal unix commands
Last edited by venikathir; 08-08-2011 at 11:31 AM..
Reason: change
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i want to run some solaris executable program (text file). i telnet to solaris machine. the text file is on the net drive h: or my local drive on windows system.
how can i copy the text file from local drive in windows to remote machine in solaris system?
thanks. (4 Replies)
Discussion started by: gary
4 Replies
2. Shell Programming and Scripting
Hi,
I want to create unix script such that it should run on machine A, it should run TAR commands on machine B and copy that TAR to machine C.
Is it possible?
Thanks
Rahul (2 Replies)
Discussion started by: rahuljadhav
2 Replies
3. Shell Programming and Scripting
Hi guys,
I need to run and test some shell script. At work, i work on ksh. I don't have any such software/client installed at home and i cannot always connect to work from home. At home i have Windows Vista.
Is there a free and reliable software where i can run my ksh script?
Please let me... (4 Replies)
Discussion started by: jakSun8
4 Replies
4. Red Hat
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies
5. Shell Programming and Scripting
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies
6. UNIX for Advanced & Expert Users
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies
7. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine.
Is this possible.?
Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies
9. Red Hat
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies
10. Shell Programming and Scripting
Team,
Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies
netrc(5) File Formats Manual netrc(5)
Name
netrc - file used by ftp auto-login procedure (.netrc)
Description
The file contains frequently needed options for transfers. The file resides in the owner's home directory on the machine from which the
owner initiates the file transfer. If the file includes passwords, set permissions on the file with so that only the owner has read per-
mission.
The file uses the following format:
o Each line of the file defines options for a specific machine.
o A line in the file can be either a machine line or a default line.
o The default line must be the first line in the file if it is present.
o Fields in a default line appear in this order: default, default machine name.
o Fields in a machine line appear in this order: machine, machine name, options.
o Fields on each line are separated by spaces or tabs.
The following are valid options for a machine line:
-------------------------------------------------------------------
Option Parameter Default Description
-------------------------------------------------------------------
machine machine name none Identifies a remote
machine name
login name local name Identifies user on the
remote machine
password password none Password for remote
login name
account password none Additional account password
macdef macro name none Defines a macro like the
ftp macdef command
-------------------------------------------------------------------
Example
This is an example of a file:
machine cactus login smith
machine nic.ddn.mil login anonymous password anonymous
machine palm.stateu.edu login smith password ualonerwelcome
macdef byenow
quit
macdef ls
dir
The first line allows to log Smith into the machine after prompting for and receiving Smith's password, as shown in this example:
$ ftp cactus
Connected to cactus.tech.edu
FTP server ready.
Password required for SMITH.
User logged in
ftp>
The second line of the file allows the user to perform an anonymous transfer after typing this command:
$ ftp nic.ddn.mil
See for a description of anonymous FTP transfers.
The third line allows Smith to log into the machine Smith will not be prompted for a password because this machine line includes password
information. Because the file includes password information, the file must not have read permission set for world and group.
The lines are macro definitions, which operate much like shell aliases. A blank line must follow each macro definition to signal the end
of the macro. The first macro definition defines as an alias for the command.
See Also
ftp(1c)
netrc(5)