10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
2. Shell Programming and Scripting
awk -v now="$(date +%s)" -v tDiff="${USERMINUTES}" '
BEGIN {
FS="="
if (!now) now=systime()
if (!tDiff) tDiff=60*60
p=1
}
/{/ {rec=$0;p=1;next}
/}/ && rec && p {print rec ORS $0;next}
$1=="entry_time" { if (now-$2>tDiff)p=0 }
{rec=rec ORS $0}'... (6 Replies)
Discussion started by: SkySmart
6 Replies
3. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
4. Shell Programming and Scripting
How to FTP the latest file, based on date, from a remote server through a shell script?
I have four files to be FTP'ed from remote server.
They are of the following format.
build1_runtime_mmddyyyy.txt
build2_runtime_mmddyyyy.txt
build3_runtime_mmddyyyy.txt
buifile_count_mmddyyyy.txt
... (9 Replies)
Discussion started by: imran_affu
9 Replies
5. Shell Programming and Scripting
I'm trying to write a shell script using bash that connects to a remote server, runs a command that generates a file, pulls the file over, then renames it with the hostname of the remote server and a an extension.
So far, I'm able to everything but pull the hostname of the remote server into a... (2 Replies)
Discussion started by: hobbes80
2 Replies
6. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
i dont have remote m/c user credential. i only know remote m/c ip address. and i am able to ping that remote m/c.
In windows we use: "net time \\computername" to get the remote m/c time.
so how can i get remote m/c time in unix m/c? (means a unix command)
Thanks for the help.
... (9 Replies)
Discussion started by: partha_ori
9 Replies
8. Shell Programming and Scripting
want to remove this thread.
thanks (2 Replies)
Discussion started by: indira
2 Replies
9. HP-UX
want to remove the thread
thanks (2 Replies)
Discussion started by: indira
2 Replies
10. Shell Programming and Scripting
I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies
GFTP(1) General Commands Manual GFTP(1)
NAME
gftp - file transfer client for *NIX based machines.
SYNOPSIS
gftp [options] [[proto://][ user : [pass] @] server [: port ][/ directory ]]
DESCRIPTION
gFTP is a file transfer client for *NIX based machines. It currently has a text interface and a GTK+ 1.2/2.x graphical interface. It cur-
rently supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and FSP protocols.
OPTIONS
You may enter a url on the command line that gFTP will automatically connect to when it starts up.
--help, -h
Display program usage.
--info Display some information about how gFTP was built. Please send the output of this command when submitting a bug report.
--version, -v
Display the current version of gFTP.
proto This specifies the protocol that should be used. It can currently be one of the following options: ftp, ftps, http, https, ssh, fsp,
local and bookmark. If omitted, the protocol specified by the default_protocol option will be used.
user The username that will be used to log into the remote server. If omitted, your current username will be used for most protocols. For
the FTP protocol, the anonymous username will be used.
pass The password that will be used to log into the remote server. If omitted, you will be prompted for the password. If you are using
the FTP protocol, and the username is anonymous, then your email address will be used as the password.
server The remote server to connect to.
port The remote port on the server to connect to. If omitted, the default port for the protocol will be used. The port will be looked up
in the services(5) file.
directory
The directory to change to once you are connected to the remote server.
FILES
~/.gftp/gftprc
Per user configuration file. Most of these options can be edited inside gFTP. This file is also commented very well. ~/.gftp/book-
marks
Per user bookmarks file.
BUGS
If you find any bugs in gFTP, please report them to GNOME's Bugzilla at http://bugzilla.gnome.org/
AUTHOR
Brian Masney <masneyb@gftp.org> - http://www.gftp.org/
MARCH 2007 GFTP(1)