11-18-2008
Thanks it works. I can run my scripts using "C:\Program Files\PuTTY\psftp.exe" -b "C:\Documents and Settings\Mohan\My Documents\sftpcommands.txt".
I have another doubt it the same script, I need to rename file which iam getting from SFTP, i am not sure the file name which iam getting so iam using "*" but as example iam sending this "ren Test*.txt Test123.txt"
Can you tell me how to rename with date format something like test123[DDMMYYYY][time].
--
Thanks,
Mohan
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I just bought a new pc and my unix software is installed on my old computer. I want to take the hard disk outta my old pc and then install it on my new pc so my new pc has 2 hard drives.
now, after my pc new has 2 hard drives, one being unix the other being windows xp, i want to be able to... (7 Replies)
Discussion started by: TRUEST
7 Replies
2. Shell Programming and Scripting
Hi everyone,
I have oracle 9i installed in Windows XP and i have ubuntu in VM WARE.
I would like to know how to connect to Oracle in windows xp from Linux through shel scripting...... (3 Replies)
Discussion started by: Zimbu
3 Replies
3. Shell Programming and Scripting
HI,
I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies
4. Linux
Hi,
i am trying to connect my Putty session on a windows box to a linux SSH, i have generated private and public key pairs using puttygen, i have set the public one to be in an OPENSSH format... and have put this in my authorized_keys file in linux, when i connect i get the following errors:
... (1 Reply)
Discussion started by: Jtyreman
1 Replies
5. Ubuntu
Hi,
Can anyone give me the steps to connect ubuntu from windows7?
Thanks (1 Reply)
Discussion started by: diehard
1 Replies
6. Shell Programming and Scripting
Hi
Need help to connect from Ubuntu to Windows using NetCat nc
I can not get my script to send new-line
Her is what I have tried(sleep 2 ; echo user ; sleep 1; echo pass; sleep 2; echo netstat) | nc -t 10.10.10.34 23
gives this outputÿý%ÿûÿûÿý'ÿýÿýÿûWelcome to Microsoft Telnet Service
... (1 Reply)
Discussion started by: Jotne
1 Replies
7. Windows & DOS: Issues & Discussions
Hi,
We are running Linux server and are required to connect to Windows server and fetch the files from windows server.
How can i connect to Windows server from Linux? I have to do this with a automated shell script on Linux
I appreciate your response. (4 Replies)
Discussion started by: reachmexyz
4 Replies
8. Shell Programming and Scripting
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies
9. UNIX for Advanced & Expert Users
Greetings Experts,
I am working for a bank client and have a question on connect-direct and SFTP.
We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one server to another server. At times, we manually transfer the files using SFTP from one server to another... (2 Replies)
Discussion started by: chill3chee
2 Replies
LEARN ABOUT DEBIAN
gesftpserver
gesftpserver(8) System Manager's Manual gesftpserver(8)
NAME
gesftpserver - Green End SFTP Server
SYNOPSIS
/usr/lib/gesftpserver [OPTIONS]
DESCRIPTION
gesftpserver implements the SFTP protocol. It is normally run as an SSH subsystem but can be run in other contexts if necessary.
CONFIGURING OPENSSH
By default, OpenSSH will use its native SFTP server in response to requests for the SFTP subsystem. To use gesftpserver instead, add a
suitable Subsystem command to sshd_config (and remove the existing one if present). For example:
Subsystem sftp /usr/lib/gesftpserver
IMPLEMENTATION DETAILS
gesftpserver supports up to version 6 of the SFTP protocol and the following extensions:
newline
Reports the server's newline convention to the client.
space-available
Equivalent to df(1).
supported
v5 capability details
supported2
v6 capability details
text-seek
Used for resuming text file downloads.
vendor-id
Reports server name and version to client. gesftpserver reports a vendor of "Green End" and a server name of "Green End SFTP
Server".
versions
Lists available versions.
version-select
Select version.
posix-rename@openssh.org
Provides POSIX rename semantics even in pre-v5 SFTP.
SEE ALSO
sshd_config(5)
gesftpserver(8)