10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the below sftp script to transfer a file from a linux host(source) to another linux host(target). Public key is already set up in target host and I am able to transfer file using sftp from source to target.
But not sure why the below script(ftp_script) is not working.
Any help in this... (3 Replies)
Discussion started by: Armaan
3 Replies
2. Shell Programming and Scripting
Hi everyone,
I'm no killer in shell scripting, that is why I've searched and found a little script that explained how to do what I wanted to do : a FTP transfer from distant servers. I adapted it cause as such, it didn't work.
As I needed to do some very simple shell commands (erase and... (2 Replies)
Discussion started by: mederik
2 Replies
3. Shell Programming and Scripting
Hi folks,
for sftp autologin, while browing in unix.com forums.. I got the below code. I tried to execute that code but no luck.
#!/bin/sh
HOST=yourservername
USER=yourusername
PASS=yourpassword
echo "sftping file ..."
lftp -u ${USER},${PASS} sftp://${HOST} <<EOF
cd /tmp
get tmpfile... (7 Replies)
Discussion started by: scriptscript
7 Replies
4. Shell Programming and Scripting
Hi all ,
can any one tell me how to code SFTP automation script ?
I searched lots of forums but i didn't get any useful information:(
I don't want auto Login script > like if u run the script it should automatically login into specific account and etc..
Just i want the following things... (4 Replies)
Discussion started by: sravan008
4 Replies
5. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
6. Shell Programming and Scripting
Hi All,
I have created a shell script having some general copying and moving commands. Commands are working fine in Shell but while executing the shell script it is showing an error
mv: cannot stat `/apps/orarpt/in/*': No such file or directory
command is
mv $IN_DIR* $ARCHIVE_DIR
where... (5 Replies)
Discussion started by: maindola.amit
5 Replies
7. Shell Programming and Scripting
Hi, I am trying to do this thing useing my shell bash ( sorry for my english )
I have in a file 63 hostnames, i wanna ask to the DHCP admin, to reserv that reserves 63 IP addresses of this hosts, using their mac address.
I have thinked this script:
for ((i=1;i<63;i++)); do
arp $(head... (10 Replies)
Discussion started by: Cypress
10 Replies
8. Shell Programming and Scripting
Hi All,
Please let me know how do I execute some of the shell commands like cat, find ,grep within sftp.
Any help in this regard would be greatly appreciated.
Thanks, (5 Replies)
Discussion started by: tommy1
5 Replies
9. Shell Programming and Scripting
Hi all,
I am a newbie currently trying to execute shell commands from ruby instead of a shell script.(This method is conceived only for solaris so no issues with porting to other OS and all)
Eg:
Consider the command 'ls"
with a shell script ,I would use it like this
bash# ls
<all the... (4 Replies)
Discussion started by: wrapster
4 Replies
10. Shell Programming and Scripting
Here is my script
#!/bin/bash
pwd
cd /var/lib/pgsql
Both "pwd" and "cd" are not executed is there any other way i can change the current working directory to /var/lib/pgsql pls help! (9 Replies)
Discussion started by: perk_bud
9 Replies