Search Results

Search: Posts Made By: rakeshou
9,083
Posted By rakeshou
Would appreciate if you could explain or could...
Would appreciate if you could explain or could lead me to the solution to this problem.

Thank You.
9,083
Posted By rakeshou
Unable to catch the output after core dump and bus error
I have a weird situation in which the binary dumps core and gives bus error. But before dumping the core and throwing the buss error, it gives some output.

unfortunately I can't grep the output...
10,024
Posted By rakeshou
Send email as a different user than the user logged in
Hi
I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in.

something like do-not-reply@xyz.com


Thank you.
5,503
Posted By rakeshou
read this thread ...
read this thread
https://www.unix.com/unix-advanced-expert-users/95779-script-without-read-permission-but-execute-script.html

and this article...
5,503
Posted By rakeshou
use setuid
only root can execute the script without read access as root can read anything implicitly.

as root

chown root:root /tmp/TestScript.ksh

chmod 4111 /tmp/TestScript.ksh
chmod 2111...
6,756
Posted By rakeshou
have you tried paste command?
have you tried paste command?
4,153
Posted By rakeshou
not tested
try echoing the value like

RETURN_VAL=`su user << EOF
some commands
result=$?
echo $result
EOF`

echo $RETURN_VAL
13,159
Posted By rakeshou
the "g" in above sed command tells sed to match...
the "g" in above sed command tells sed to match all occurrences
12,828
Posted By rakeshou
i tried my best
There are two possiblities:

Either you are not understanding the solutions provided above
or
we are not understanding the requirement

:D
12,828
Posted By rakeshou
try this
#!/bin/ksh

# to type ^M, keeping ctrl pressed, press vm

grep "^M" $1


RETURN_CODE=$?
echo $RETURN_CODE

if [ $RETURN_CODE -eq 0 ]; then
echo "DOS File"
else
echo "Unix...
13,865
Posted By rakeshou
you can rename the file with .txt extension ...
you can rename the file with .txt extension

mv file file.txt
12,828
Posted By rakeshou
convert file to unix
first convert the windows file to unix format using

tr -d '\r' < infile > outfile

or

dos2unix infile > outfile

then process.
1,477
Posted By rakeshou
Try this
cat file| tr ' ' ',' | awk '{print "insert into <tablename> values (" $0 ")" }'
4,189
Posted By rakeshou
CVS command checkin log minus tag log
Hi

What is the cvs command for getting the diff between the checkin log and tag log.

i am trying

cvs rdiff -s -r <branch Tag> -r <branch> <module>

but it is not giving me the files that...
1,688
Posted By rakeshou
Merge similar lines
Hi,

I have a file like this.



please notice that ./usr/orders1/order_new_2627 appears more than once, thus needs to be merged.

I would like to merge the lines where the first column match...
2,789
Posted By rakeshou
Finding Last occurance of another pattern when a pattern is found.
Hi,

I have two files viz,

rak1:
$ cat rak1


rak2:

$ cat rak2



sdiff rak1 rak2 returns:


I want the lines that got modified, changed, or deleted preceding with the section...
2,648
Posted By rakeshou
i have to remotely execute CVS diff, and hdiff is...
i have to remotely execute CVS diff, and hdiff is not an option for me. I am using sun solaris
2,648
Posted By rakeshou
Please help me
Please help me... :(
2,648
Posted By rakeshou
readable rdiff output
Hi Experts,

I have to display rdiff in a readable format.

The rdiff output is as under:
Index: ivapp_conf/etc/PrdWest/process.par
diff -u ivapp_conf/etc/PrdWest/process.par:1.1.80.1...
9,960
Posted By rakeshou
Kill all child processes on trap
hi

OS: Sun Solaris

I have a scenario that when someone presses ctrl-c while executing a shell script, it should not just exit. it should kill all the child processes started by the running...
2,341
Posted By rakeshou
HELP --Accidentaly executed mv ../* . in /tmp
Please help me, Its urgent.

I was in /tmp directory

and I accidentally executed as root

Code:

mv ../* .

in /tmp directory when it was supposed to be executed in some other directory....
9,014
Posted By rakeshou
see if this what you are looking for
Lets use a flags scp1 and scp2

scp1=0
scp2=0

LOCAL_LOG_FILE="category_`date +%m%d%Y`.log"
date +"%m/%d/%Y %H:%M:%S" >$LOCAL_LOG_FILE
scp -p /az/web/ezap.abc.com/docs/*.gif...
9,014
Posted By rakeshou
you are sending success message on error...think it is wrong
you are sending success message on error...think it is wrong

if [ $? -ge 0 ]; then

means if there is an error
9,014
Posted By rakeshou
try this -- but not tested
EXIT_STATUS="?"
LOCAL_LOG_FILE="category_`date +%m%d%Y`.log"
date +"%m/%d/%Y %H:%M:%S" >$LOCAL_LOG_FILE
scp -p /az/web/ezap.abc.com/docs/*.gif...
13,083
Posted By rakeshou
Pretty cool Kapil.. well done.
Pretty cool Kapil.. well done.
Showing results 1 to 25 of 74

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