guys,
take a look at this code snipette,
ftp -ivn <<! >> $LOG_TMP 2>&1
open $FTP1_SRV
user $FTP1_USR $FTP1_PAS
cd $FTP1_BDIR
cd $ADIR
mdel $(< ff.$$)
bye
!
Here the file ff.$$ can have MANY file names which sometimes exceeds the command line length and thus FTP just...
Hi !
I need to know how to display special characters on the terminal and save them in file. (manually or through a process). (characters like ß, ö,ü and ä - a Umlaut)
On my SunOS 5.8 environment, default shell ksh, term vt100,
LANG set to null. I played with LANG settings but could with no...
Hi Guys,
How do I redirect the output of time command to a file?
I use ksh.
e.g.
time ls >> myfile
This command does not put the output of my time command in myfile.
Could you help solving this?
Guys,
Would like to know if it is feasible to change passwords by
using some pre-prepared macro (using load runner or some other utilities) and running it across different hosts to
change a particular user's passwords? (given that old password(s) is known)
Will there be any issues with stty...
Guys,
I am writing a ftp script. Sometimes it happens that my ftp
session times out showing error on the terminal.
"Connection timed out".
My problem is that I am not able to capture this error message in the log file.
Even though I use following construct, the (error) message
is...
Hi All,
This is a snippet of my script:
###
ftp -in $SERVER_IP <<-EOF >> $FTP_LOG
user $LOGIN $PASS
cd $DIR_LOC
dir *.* ${FDIRLIST}
! . ${PARSE_SCR} ${FDIRLIST} ${FLIST}
mget $(< $FLIST)
EOF
###
Description:
In one FTP session I get a long listing of the remote
directory and create a...
Guys,
How can I find out what is the permitable length of
variable names in Korn shell?
Is there any environment setting which can define such
max permitable length of variable name?
e.g
export MY_VAR="my memory var";
here the length of MY_VAR is 6.
Thanks,
bharix
Hi Guys,
How can I send e-mails with attachments on HP-UX 10.20?
I want to use mailx.
I tried this
cat myfile | uuencode myfile | mailx -s "test" valid.id@srv.de
I get e-mail successfully but the file gets embedded in the message body and does not come in as an attachment.
What am...
Hi Guys,
How can I send e-mails with attachments on HP-UX 10.20?
I want to use mailx.
I tried this
cat myfile | uuencode myfile | mailx -s "test" valid.id@srv.de
I get e-mail successfully but the file gets enbedded in the message body and does not come in as an attachment.
What am...
Hi Experts !
I need to replace multiple consecative occurrences of
a charachter with one such charachter.
Can it be done with a very short code or a one liner may be?
Please use ksh, awk or sed.
For Example -
XXXXXXXXXabcdXXXXlmnopXXXXXXXXcddcXXXXXXXXXXXX1212XXXXX
should be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.