10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi Team,
I am connecting from one (A) linux server to another(C)/any linux server by sftp
on A linux server:
sftp userid@C
password:
mget is Not working fine
I am using mget to pull the files. it shows mget as invalid command.
But from (B) Linux server to (C) /to Any server Linux... (15 Replies)
Discussion started by: johnsnow
15 Replies
2. UNIX for Dummies Questions & Answers
Hello Unix Buddies,
cat infinite.sh
#!/bin/sh
while true
do
echo "Infinite loop"
doneI am running it in the background
$ ./infinite.sh > /dev/null &
31634Then i do an exit or click on the cross mark to close the session.
Now my expectation is that when i open up a new... (8 Replies)
Discussion started by: shellscripting
8 Replies
3. Red Hat
What is wrong with this sftp command being used in one line:
sftp /Data/SEmisstn.gz lsmsadit@144.226.213.23:/test/lsms.SEmisstn.gz
The ssh key is already setup. The node is valid and i can ssh to it as well as do a manual step by step sftp to the server. However, for some odd reason, i... (10 Replies)
Discussion started by: mrn6430
10 Replies
4. Shell Programming and Scripting
Please I have run a background script using nohup please tell me way to stop this. Thanks in Advance (4 Replies)
Discussion started by: mumakhij
4 Replies
5. Solaris
I am not very familiar with the use of FTP, and trying to run it I found out that standard "ftp" is not working" but "sftp" is.
If sftp is allowed will that block ftp ? and if so where is this set ?
I thought there is no relationship, is that right ?
If so look here:
inetadm | grep ftp
enabled... (11 Replies)
Discussion started by: manni2
11 Replies
6. UNIX for Advanced & Expert Users
Hello -
I have a production stream that is scheduled with cron to run each Monday morning. The jobs in the stream perform tasks including
FTP get, load to a DB table, and report processing.
About a month ago I was directed to begin using sftp in these jobs and since then the jobs... (12 Replies)
Discussion started by: PatrickPurfield
12 Replies
7. Shell Programming and Scripting
Hi All,
I am running 25 background process from a Unix shell script which calls a single Oracle procedure with different paramenters each time.
These 25 process creates 25 different files.
When i run these 25 Background SQLPLUS processes, few files are not created completly but if i run 25... (1 Reply)
Discussion started by: rawat_me01
1 Replies
8. Shell Programming and Scripting
Hi All:cool:,
i tried to automate SFTP process after passwordless authendication.
Stil i am getting error...
Can anyone help....
-------------------
sample code below
-------------------
sftp -v $mdskk@100.4.4.75 << EOF
cd /data
mget *.tar.gz
bye
EOF... (2 Replies)
Discussion started by: senthil_seera
2 Replies
9. UNIX for Dummies Questions & Answers
hi,
I have a script that will automatically login into a server and get a file. it is working fine if i run it on a command line. however, when i tried to run it as a cron job, it is not working. what should i do?
set timeout -1
spawn /usr/bin/sftp user1@server1
match_max 100000
expect... (3 Replies)
Discussion started by: tungaw2004
3 Replies
10. Shell Programming and Scripting
Hi,
I have a simple script that is trying to put a file that resides on a local machine to a remote machine. It runs fine manually but does not complete when scheduling to run in cron. Here is what the script looks like. Any idea what I am doing wrong here?
#!/bin/ksh
cd /path
sftp... (4 Replies)
Discussion started by: ewilson0265
4 Replies
Net::SSH2::SFTP(3pm) User Contributed Perl Documentation Net::SSH2::SFTP(3pm)
NAME
Net::SSH2::SFTP - SSH 2 Secure FTP object
DESCRIPTION
An SFTP object is created by the Net::SSH2 "sftp" method.
error
Returns the last SFTP error (one of the LIBSSH2_FX_* constants). Use this when Net::SSH2::error returns LIBSSH2_ERROR_SFTP_PROTOCOL. In
list context, returns (code, error name).
open ( file [, flags [, mode ]]] )
Open or create a file on the remote host. The flags are the standard O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_TRUNC, and O_EXCL,
which may be combined as usual. Flags default to O_RDONLY and mode to 0666 (create only). Returns a Net::SSH2::File object on success.
opendir ( dir )
Open a directory on the remote host; returns a Net::SSH2::Dir object on success.
unlink ( file )
Delete the remote file.
rename ( old, new [, flags ] )
Rename old to new. Flags are taken from LIBSSH2_SFTP_RENAME_*, and may be combined; the default is to use all (overwrite, atomic, native).
mkdir ( path [, mode ] )
Create directory; mode defaults to 0777.
rmdir ( path )
Remove directory.
stat ( path [, follow ] )
Get file attributes for the given path. If follow is set (default), will follow symbolic links. On success, returns a hash containing the
following:
mode
size
uid
gid
atime
mtime
setstat ( path, key, value... )
Set file attributes for given path; keys are the same as those returned by stat; note that it's not necessary to pass them all.
symlink ( path, target [, type ] )
Create a symbolic link to a given target.
readlink ( path )
Return the target of the given link, undef on failure.
realpath ( path )
Resolve a filename's path; returns the resolved path, or undef on error.
SEE ALSO
Net::SSH2.
AUTHOR
David B. Robins, <dbrobins@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2005, 2006 by David B. Robins; all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2011-05-06 Net::SSH2::SFTP(3pm)