psftp from linux box to windows

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions psftp from linux box to windows
# 1  
Old 01-21-2010
psftp from linux box to windows

Hi all pro

I had a script from windows to put diff file from the linux box
but i had stuck on it ,how to play around with the %1


Code:
@echo off

"C:\putty\psftp" linux@1.1.1.1 -pw password -bc -b getfile.scr


Code:
--getfile.scr
lcd "C:\DATA"
cd logs/
mget %1



Thanks
jiajin

---------- Post updated at 11:55 PM ---------- Previous update was at 09:43 PM ----------

Hi all

problem solved,thkx

jiajin

Last edited by pludi; 01-21-2010 at 09:47 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

How to access redhat Linux box graphically from windows box?

Hi I have a linux box and need to access from windows graphically # uname -a Linux pc-l416116 2.6.18-155.el5 #1 SMP Fri Jun 19 17:06:47 EDT 2009 i686 i686 i386 GNU/Linux What components do I need to install on Linux and windows to do that? TIA (6 Replies)
Discussion started by: magnus29
6 Replies

2. Shell Programming and Scripting

Copying files from windows shared location to linux box

Hi, i am new to shell scripting. i have a requirement to copy the files from a windows shared location( vendor will place the files here) to Linux server( my Informatica will pick the files from this location). Files should be loaded in the order in which they were placed in windows box.(Based on... (1 Reply)
Discussion started by: Haari
1 Replies

3. Shell Programming and Scripting

help to access windows share from linux box

how to access windows share from a linux box windows machin is in different workgroup so how to pass credentials whil acessing a share from a script (2 Replies)
Discussion started by: robo
2 Replies

4. UNIX for Advanced & Expert Users

Help connecting linux box to Windows - winbindd problem

Hi experts - I hope you can help me. I am trying to resolve Windows host names (aka Netbios names, aka "UNC names) from a Linux box. I have added "dns wins" to the "hosts" line at /etc/nsswitch.conf, and installed samba 3.2.2 and ran "winbindd -D". Now, when I go: "wbinfo -N venus" (where... (1 Reply)
Discussion started by: maryg
1 Replies

5. Linux

rsync to backup windows file on a linux box

Hi, Do you know how to pass comand to rsync to backup a windows folder on a linux box? I want to copy c:\\folder from windows to /data/tmp on linux. I dont know how to pass the windows parameter to: rsync -avz 192.168.1.4\c:\\folder /data/tmp Thanks. Charles. (3 Replies)
Discussion started by: mosndup
3 Replies

6. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

7. Shell Programming and Scripting

Script to Reboot a linux box from a windows box

HI All, I need a script to reboot a linux box from a windows box. The script needs to run automatically whenever a sitescope alerts with an error message. Have searched for this in the forums, but could not get something relative. Pls. let me know the various alternatives we have to do... (2 Replies)
Discussion started by: Crazy_murli
2 Replies

8. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies

9. IP Networking

Can see my linux box from unix but from windows based

I have a company lan, we have workstations and we have servers. I have 3 unix servers, and 2 linux servers. I can ping one of the linux servers from windows, but the other one gets no reply, However, from my unix boxes i can telnet AND ping both linux boxes. The 2 linux boxes are on different... (4 Replies)
Discussion started by: kymberm
4 Replies
Login or Register to Ask a Question