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. UNIX for Beginners Questions & Answers
Hi
I am trying to write a script which when I run from server A it execute few command on another server say B and show me the output.
below is the script but it is not showing me the o/p of B machine but instead showing me A machine o/p every time.
#!/bin/bash
for i in `cat... (14 Replies)
Discussion started by: scriptor
14 Replies
3. Shell Programming and Scripting
help me (2 Replies)
Discussion started by: sonu pandey
2 Replies
4. Shell Programming and Scripting
Hi,
When retrieving parameters of a file using ls command i need to print the year part . When i do ls -ltr the following output is displayed
-rwxrwxrwx 1 d_infd d_infd 1711 Jan 8 2004 wf1.class.
Here the year part is not displayed only Jan 8 is displayed.
Can any one... (9 Replies)
Discussion started by: ragugct
9 Replies
5. UNIX for Dummies Questions & Answers
Hi Guru,
I have a requirement where i need to list the *.csv files in my remote server
and copy a file from that server to my unix server
I wrote dis code
#!/bin/sh
. /home/aaa/bb/GlobalHost.sh
export HOST
export USER
export PWD
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote... (1 Reply)
Discussion started by: pssandeep
1 Replies
6. Shell Programming and Scripting
Unix Box: IBM AIX
Shell : K-Shell
When i logged into a remote server through FTP, and tried to find only required month file by typing `ls -ltr *200805`, the output is "ls remotefile localfile". I coudnt understand this.
What is want is get into the remote server and get the count of required... (6 Replies)
Discussion started by: vasuarjula
6 Replies
7. Solaris
Hi,
I have username/password for a remote server. I would like to have list of filenames and their size in a particular directory of remote server.
Now Problem is - I can not use rsh command as I can not modify rhost file of remote server.
Thanks in advance.
Sanjay (1 Reply)
Discussion started by: sanjay1979
1 Replies
8. AIX
Unix Box: IBM AIX
Shell : K-Shell
When i logged into a remote server through FTP, and tried to find only required month file by typing `ls -ltr *200805`, the output is "ls remotefile localfile". I coudnt understand this.
What is want is get into the remote server and get the count of required... (0 Replies)
Discussion started by: vasuarjula
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
THe following is the output when i run the command ls -ltr
can anyone explain the meaning of the field in red
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027SASI.gnt
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027RITD.gnt
-rw-r----- 3 orca orca ... (2 Replies)
Discussion started by: ranjita.c
2 Replies
10. Shell Programming and Scripting
I need a cron job to shut services running on other nodes, do some db maintenance, then restart the remote services. This is HP-UX 11.00.
I cannot get remsh to work, even interactively. Per man page, does not prompt for password. I get:
remsh appserver -l oracle stop_services
remshd:... (2 Replies)
Discussion started by: Jimbo
2 Replies