Search Results

Search: Posts Made By: gopidesaboyina
29,219
Posted By gopidesaboyina
you can't mix both expect & ksh in same script....
you can't mix both expect & ksh in same script. write two 2 scripts one reads the hostfile and sends instance,host, password to expect scripts. which does your job. here is the sample. this might not...
26,120
Posted By gopidesaboyina
use this way..good luck
start()
{
su - $USER -c "${INSTALL_PATH}/bin/MyApp -X"
# or
# su - $USER -c "cd ${INSTALL_PATH}/bin/; ./MyApp -X"
return 0
}
1,846
Posted By gopidesaboyina
1. print vtoc from source disk using prtvtoc -f...
1. print vtoc from source disk using prtvtoc -f filename
2. copy the above vtoc to new blank disk using edvtoc -f filename
3.above would create all slices /dev/rdsk/cxtxdxsx

copy slice by slice...
3,301
Posted By gopidesaboyina
output shows on screen. if you want you can...
output shows on screen. if you want you can redirect them to some file. those extra slashes are for escape, other wise it wouldn't find that string as / has special meaning in unix.
31,268
Posted By gopidesaboyina
were you able to run that script from terminal...
were you able to run that script from terminal manually ?
3,301
Posted By gopidesaboyina
find /files/accounting/ -name *.xls -exec grep -i...
find /files/accounting/ -name *.xls -exec grep -i '\\\\clttrut04\\dept' /dev/null {} \;
37,936
Posted By gopidesaboyina
now you've correct script. you need to check smtp...
now you've correct script. you need to check smtp for mail sending/receving from that box. you may just check mails simply by sending mail from prompt. if you recive then we can look @ script...
37,936
Posted By gopidesaboyina
There is syntax error in mailx command. use like...
There is syntax error in mailx command. use like this.


mailx -s "Subject of Mail " -c " CC List if you want to CC" xyz@xyz.com < "Body of the mail from file (or) out put of some command "
7,934
Posted By gopidesaboyina
last_modified_dir=`ls -ltu | grep ^d | awk...
last_modified_dir=`ls -ltu | grep ^d | awk '{print $NF}' | sed -n 1p`
files_to_be_moved_to=`ls -ltu | grep ^d | awk '{print $NF}' | sed -n 2p`
32,366
Posted By gopidesaboyina
tail -r <filename> would reverse entire...
tail -r <filename>

would reverse entire file.
3,033
Posted By gopidesaboyina
This /usr/sbin/for has this problem. You can fix...
This /usr/sbin/for has this problem. You can fix this using /usr/xpg4/bin/for or

while read line < cat filename
do
echo $line
done

this would print entire line. but if you use for it would...
18,147
Posted By gopidesaboyina
Use this to get size directory wise recursively ...
Use this to get size directory wise recursively

find . -type d | xargs du -sk
18,147
Posted By gopidesaboyina
just execute manually..not through script and...
just execute manually..not through script and give a try..

find . -type d -size +<size>c -ls
18,147
Posted By gopidesaboyina
Hmm..it works fine for me..that's right command..
Hmm..it works fine for me..that's right command..
5,098
Posted By gopidesaboyina
Thanks Jacoden...nice docs there...
Thanks Jacoden...nice docs there...
8,353
Posted By gopidesaboyina
This doesn't look like cron issue..may be sql is...
This doesn't look like cron issue..may be sql is exiting. so the cron is catching that error...look for sql..if possible put spool on that sql..
5,098
Posted By gopidesaboyina
#! /usr/bin/sh counter=1 for i in `cat...
#! /usr/bin/sh

counter=1
for i in `cat movies.txt
do
mv $i `dirname $i`/${counter}_`basename $i`
counter=`expr counter + 1`
done

Give a try with this if doesn't work..paste the log here :)
2,745
Posted By gopidesaboyina
Dude!!! I don't think I understood your problem...
Dude!!! I don't think I understood your problem fully..but here is what i tried...take a look..


t1=`echo "$line" | awk -F"," '{print $1}'`
sumt1= `echo "$line" | awk -F"," '{print $3}'`
...
51,586
Posted By gopidesaboyina
if you can get the config file like this..you may...
if you can get the config file like this..you may use below script.

config file format is like this
########################
config.cfg
servername =
filepath =


#student attributes...
8,818
Posted By gopidesaboyina
Hmmm..looks strange to me..anyways give me output...
Hmmm..looks strange to me..anyways give me output of this..

#!/bin/bash
Keepdate=`/bin/ls -ult --full-time| sed 1d | head -1 | awk '{ print $6 }' | awk -F"-" '{print $1}'`-

echo $Keepdate
...
8,353
Posted By gopidesaboyina
cron is running as root or other user id ? login...
cron is running as root or other user id ? login with same id and try to run manually. let's c that works or not..can you paste the error again & if possible contents of sql u r running...
5,098
Posted By gopidesaboyina
#! /usr/bin/sh counter=1 for i in `cat...
#! /usr/bin/sh

counter=1
for i in `cat movies.txt
do
mv $i ${counter}_$i
counter=`expr counter + 1`
done
5,709
Posted By gopidesaboyina
paste your text file here and the out put you...
paste your text file here and the out put you want..so accordingly we can write the command. :)
8,818
Posted By gopidesaboyina
it won't delete becuase i commented out rm. try...
it won't delete becuase i commented out rm. try this..btw..what is the unix version do u use ?

#!/bin/bash
Keepdate=`/bin/ls -ult --full-time| sed 1d | head -1 | awk '{ print $6 }'`

echo...
8,818
Posted By gopidesaboyina
give me out put of this.. #!/bin/bash ...
give me out put of this..

#!/bin/bash
Keepdate=`/bin/ls -ult --full-time| sed 1d | head -1 | awk '{ print $6 }'`

echo $Keepdate

#/bin/ls -ltr | grep -v "$Keepdate" | awk '{print $NF}' |...
Showing results 1 to 25 of 29

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