Search Results

Search: Posts Made By: Rahul619
1,380
Posted By Rahul619
Values passing out of isql session
hi ..

i have a isql session which inside which i have two variables defined.. i wanna calculate % based on those variables. i knw i can easily do % calculation in csh if i could get the value of...
13,499
Posted By Rahul619
Seven days past date from current date
hi all..

i want 2 know how 2 find 7days past date from current date..
when i used set datetime = `date '+%m%d%y'` i got 060613..

i just want to know hw to get 053013..

i tried using...
5,411
Posted By Rahul619
thanks a lot Don Cragun .. cant expect anything...
thanks a lot Don Cragun .. cant expect anything clear more dan this. it was awesome and clear.. once again thanks 4 ur patience 2 explain it line by line :) !!

---------- Post updated 06-03-13 at...
4,055
Posted By Rahul619
thanks a lot 4 dis piece of explanation :) !!
thanks a lot 4 dis piece of explanation :) !!
4,055
Posted By Rahul619
Wait functionality in Solaris
hi all ,

If pid is not an active process ID, the wait utility will return immediately and the return code will be 0.

i just came across this which means that wait will returm 0 even though the...
5,411
Posted By Rahul619
am running a.sh and b.sh in background cos each...
am running a.sh and b.sh in background cos each script ll run longer. actually in the above code i made a mistake. i should enter and invoke c.sh only if both a.sh and b.sh are success.

i ran the...
5,411
Posted By Rahul619
Thanks yoda and rudic. i got it cleared . ...
Thanks yoda and rudic. i got it cleared .



#!/bin/bash



./bin/a.sh &

pid=$!

wait $pid

sft=$?

echo "a.sh job status : " $sft 1>>close.log 2>&1

if [ $sft -eq 0 ]
then
5,411
Posted By Rahul619
BASH log file
hi .. am new to bash script..


#!/bin/bash

logfile = "${HOME}/log/test.log"

./1.sh

echo " script over "



can anyone telme hw to set the logfile ?? the above code calls the 1.sh...
13,885
Posted By Rahul619
thanks all for ur replies .. Am using csh here...
thanks all for ur replies ..
Am using csh here since that is my only option :(
i found out hw to take the PID in csh , now can anyone help me to take the success or failure status of the last...
13,885
Posted By Rahul619
thanks a lot drl .. it worked great .. you have...
thanks a lot drl .. it worked great .. you have any comments about my logic ??
can u pls throw me some light over that if possible
13,885
Posted By Rahul619
Variable syntax error
Code:
#!/bin/csh -f

################
# Set Variables
################

set curdate = `date '+%Y%m%d'`
set datetime = `date '+%m%d%y_%H%M'`

grep abc abc.txt

echo $?

exit(0)
...
13,885
Posted By Rahul619
Variable syntax error in $?
hi all ,

i just tried to take the status of previous command inside the script using
echo $?. It throws me a variable syntax error , but when i use echo $? as an individual command it works...
1,342
Posted By Rahul619
Execution problem in running multiple scripts
hi all,
I have 3 individual scripts to perform the task . 2nd script should run only after the 1st script and 3rd script must run only after first 2 scripts are executed successfully.

i want to...
10,863
Posted By Rahul619
HI .. I tried to do that and ended up in an error...
HI .. I tried to do that and ended up in an error ..
awk -F"|" '{if (NF != 37) print $0 }' ${INPUTFILE} > ${ERRORFILE}

This is how i copy the line with extra delimiter to an error file , can u...
Forum: Solaris 02-19-2013
684
Posted By Rahul619
Help me with awk
Hi all,
As of now am using an awk command to check the number of columns in a file that has 10 lakh rows.
Is it possible to remove that particular line having an extra column and copy the remaining...
691
Posted By Rahul619
Help me with awk
Hi all,
As of now am using an awk command to check the number of columns in a file that has 10 lakh rows.
Is it possible to remove that particular line having an extra column and copy the remaining...
10,863
Posted By Rahul619
Hi ..Yes,am able 2 copy that error line to a...
Hi ..Yes,am able 2 copy that error line to a separate file. My requirement is like I want that error line alone to be deleted from the main file so that I can process the main file for my purpose...
10,863
Posted By Rahul619
Need an awk command to delete a line
Hi all,
As of now am using an awk command to check the number of columns in a file that has 10 lakh rows.
Is it possible to remove that particular line having an extra column and copy the remaining...
Forum: Solaris 02-18-2013
1,679
Posted By Rahul619
THANKS EVERYONE FOR UR RESPONSE !! sO WHAT...
THANKS EVERYONE FOR UR RESPONSE !!
sO WHAT WOULD BE YOUR FINAL ADVICE ?? WHICH SCRIPT IS BETTER ON A BIG PICTURE ?
Forum: Solaris 02-16-2013
1,679
Posted By Rahul619
Thats because there are some large piles of...
Thats because there are some large piles of functionality and they dont have the idea of switching over.
So i just wanna know about it. Can you pls help me out with some of generic functions and...
Forum: Solaris 02-10-2013
1,679
Posted By Rahul619
Solaris latest
Am new to using Solaris. I wanna know about some of highly re usable and powerful scripts in tcsh. A kind of generic scripts.
can anyone please help me out with any links or functions ??
Thanks in...
Showing results 1 to 21 of 21

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