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
border(3XCURSES)					  X/Open Curses Library Functions					  border(3XCURSES)

NAME
border, box, wborder - add a single-byte border to a window SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl,chtype tr, chtype bl, chtype br); int box(WINDOW *win, chtype verch, chtype horch); DESCRIPTION
The border() and wborder() functions draw a border around the specified window. All parameters must be single-byte characters whose rendi- tion can be expressed using only constants beginning with ACS_. A parameter with the value of 0 is replaced by the default value. +-----------------------------------------------------------------------+ |Constant Values for Borders | +-----------------------------------------------------------------------+ | Parameter Default Constant Default Character | +-----------------------------------------------------------------------+ | verch ACS_VLINE | | | horch ACS_HLINE - | | ls ACS_VLINE | | | rs ACS_VLINE | | | ts ACS_HLINE - | | bs ACS_HLINE - | | bl ACS_BLCORNER + | | br ACS_BRCORNER + | | tl ACS_ULCORNER + | | tr ACS_URCORNER + | +-----------------------------------------------------------------------+ The call box(win, verch, horch) is a short form for wborder(win, verch, verch, horch, horch, 0, 0, 0, 0) When the window is boxed, the bottom and top rows and right and left columns overwrite existing text. PARAMETERS
ls Is the character and rendition used for the left side of the border. rs Is the character and rendition used for the right side of the border. ts Is the character and rendition used for the top of the border. bs Is the character and rendition used for the bottom of the border. tl Is the character and rendition used for the top-left corner of the border. tr Is the character and rendition used for the top-right corner of the border. bl Is the character and rendition used for the bottom-left corner of the border. br Is the character and rendition used for the bottom-right corner of the border. win Is the pointer to the window in which the border or box is to be drawn. verch Is the character and rendition used for the left and right columns of the box. horch Is the character and rendition used for the top and bottom rows of the box. RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR. ERRORS
None. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
add_wch(3XCURSES), addch(3XCURSES), attr_get(3XCURSES), attroff(3XCURSES), border_set(3XCURSES), libcurses(3XCURSES), attributes(5), stan- dards(5) SunOS 5.11 5 Jun 2002 border(3XCURSES)