Search Results

Search: Posts Made By: leemjesse
10,774
Posted By leemjesse
execute remote script asynchronous
Does anyone know how to execute remote script asynchronously?

Here is my command

TargetList=$testmaker/config/prod_domain.list
for targethost in `cat $TargetList`; do
rsh $targethost -l...
3,964
Posted By leemjesse
Tar: how to remove a file from a tar file
My OS SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2.

I have a tar file which include extra files that I don't want. How can I remove these files from my tar file?

thanks.
5,881
Posted By leemjesse
Tar directory but exclude other
OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2

I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it?

Please help.
...
286,471
Posted By leemjesse
I figured out. I hope this will benefit others. ...
I figured out. I hope this will benefit others.

if [ ${trackErrors} -gt 0 -o ${count} -eq 0 ]
then
MailErrors ${count}
else
MailSuccess ${count}
fi
286,471
Posted By leemjesse
If and Or Condition in Unix [ksh]
I have the code below. I want to said

If TrackErrors > 0 or count == 0
then
MailErrors
else
MailSuccess
fi.

if [ ${trackErrors} -gt 0 || ${count} -eq 0 ]
then
MailErrors...
2,154
Posted By leemjesse
I found the solution to my problem. the problem...
I found the solution to my problem. the problem was I indent EOF and it should be at the first position on the left.
2,154
Posted By leemjesse
FTP inside a block of code
I need help on the code below. I am getting a compile error
syntax error at line 283 : `<<' unmatched

Looks like it doesn't like the << on the ftp line below. If I ran the code outside of this...
26,007
Posted By leemjesse
ksh
I am doing in ksh
26,007
Posted By leemjesse
Unix script array
Unix shell script;

How do I create an array and dynamically populate it with values? How do I retrieve from the array?
7,738
Posted By leemjesse
Pattern matching sed
MSG="THERE WERE XX RECORDS IN ERROR TABLE,AAAA, WHEN LOADING THE BBBB TABLE WITH EXTRACT FROM CCCC INTO TABLES FOR , DATABASE DDDD."

echo "$MSG" > /tmp/mplanmsg.$$.out

I wan to replace XX with...
11,262
Posted By leemjesse
sorry for the confusion, but I want to count how...
sorry for the confusion, but I want to count how many file in the directory
11,262
Posted By leemjesse
count file(s) under a specific directory
How do I count number of file in a directory. Here is what I want to do.

1. find total number of file in a directory in variable total

2. ftp all the file

3. ftp_return_code=`grep -c...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 01:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy