What I am trying to do is check for a file using SFTP on a server and if it exists download it to local server. If it does not exist then I need to try again after another hour--but only for a maximum of 6 times. If the file does not exist at the 6th attempt the script should exit.
2 Issues:
1) SFTP without it asking for a password. I run this script and it keeps asking for a password and then gives me some random errors saying invalid command which I think is the "If file exists check". Maybe that does not work in sftp.
2) The SFTP connection has a timeout set to every 15 minutes so I want the script to create a new session everytime it looks for a file. I am not sure if my script is actually doing that.
I know that I can specify a batch file that can be used as input to allow for it to pick up the password automatically but I couldn't figure that out. Any help suggestions--welcome.
Guys, this one is rather odd. I've got an array of numbers, and I'm trying to select only the records with the string "Random" in the 4th column. I'm using awk in this format:
awk '{ if (( $6 -eq Random )) print $0 }'
For some odd reason, this is simply giving me the list of all the entries... (4 Replies)
hi all
i have a view in the database with columns
prod_no,prod_nm, prod_code
using a shell script i should query this view and dump the data in a delimited flat file and send to another ftp server....
i also have to schedule this periodically using cron tab.
can you... (2 Replies)
Given the scenario like this, if at all if have to use IFS on the below given example, how it should be used.
IFS=/
eg:
/xyz/123/348/file1
I want to use the last slash /file1 . So can anyone, suggest me how to pick the last "/" as a IFS. (4 Replies)
hi all,
i have to schedule an email containing the information about some orphan connections existing on the server depending upon the system date. the format of the info to be sent in email is :
Process id username servername time when connection... (0 Replies)
hi,
i am having three files which is having following data
file1:
field1 field2 field3
1 A B
2 C D
3 E F
file2:
4 G H
1 I J
5 K L
file3:
4 M N (3 Replies)
Hi,
my file has the data like below:
11,231,ABCVAV
22,AAHJHAj22,hdsjkhdls
22,dhskjhdkshd
22,gdgkdkadh
11,232,dgsjgdjh
22,ghdskahdkja
22,shdkajshs
11,233,ddjs
22,dhjkahkd
22,hsajhaah
11,231,sjkjsjj
22,ahkh
22,hsakh
From the above i need only the records which starts as 11,231... (5 Replies)
Hello Folks
I am looking for logic help for below scenerio with respect to AIX n unix script
1) We need to get the date of all the saturday in yr
2) L_o left over days is weeks left over days for previous month for eg.
first sat of feb is 4th of feb in that week we have 29 - 30 - 31 from Jan... (2 Replies)
Hi Gurus
the below FTP code works fine, but the issue is from past 1 week couldn't able to send the files to external system.
#--------------------------------------------------------------------#
#Start the ftp session
#--------------------------------------------------------------------#... (3 Replies)
Hi, I am learning IPTables have this question.
My server is behind a firewall that does a PAT & NAT to the LAN address.
Internet IP: 68.1.1.23
Port: 10022
Server LAN IP: 10.1.1.23
port: 22
Allowed Internet IPs: 131.1.1.23, 132.1.1.23
I want to allow a set of IPs are to be able to... (1 Reply)
Discussion started by: capri_guy84
1 Replies
LEARN ABOUT DEBIAN
uget-gtk
UGET-GTK(1) User Commands UGET-GTK(1)NAME
uget-gtk - a download manager that uses gtk+2, and libcurl
SYNOPSIS
uget-gtk [options] [URL]
DESCRIPTION
Help Options:
-?, --help
Show help options.
--help-all
Show all help options.
--help-gtk
Show GTK+ Options
Application Options:
--quiet
add download directly. Don't show dialog.
--category-index=N
add download to Nth category. (default -1)
--folder=FOLDER
placed download file in FOLDER.
--filename=FILE
set download filename to FILE.
--user=USER
set both ftp and http user to USER.
--password=PASS
set both ftp and http password to PASS.
--proxy-type=N
set proxy type to N. (0=Don't use)
--proxy-host=HOST
set proxy host to HOST.
--proxy-port=PORT
set proxy port to PORT.
--proxy-user=USER
set USER as proxy username.
--proxy-password=PASS
set PASS as proxy password.
--http-user=USER
set http user to USER.
--http-password=PASS
set http password to PASS.
--http-referer=URL
include `Referer: URL' header in HTTP request.
--http-cookie-data=STRING
load cookies from STRING.
--http-cookie-file=FILE
load cookies from FILE.
--http-post-data=STRING
use the POST method; send STRING as the data.
--http-post-file=FILE
use the POST method; send contents of FILE
--ftp-user=USER
set ftp user to USER.
--ftp-password=PASS
set ftp password to PASS.
--display=DISPLAY
X display to use
AUTHOR
uget was written by Raymond Huang <plushuang at users.sourceforge.net>,and this manual page was originally written by Dennis Craven
<dcraven@gmail.com>
uget-gtk 1.4.9 July 2009 UGET-GTK(1)