Search Results

Search: Posts Made By: TomG
1,631
Posted By TomG
this is very tricky..I like it.
this is very tricky..I like it.
1,631
Posted By TomG
Special IF construct syntax in UNIX
Hi,

I don't understand && and || in this context. I thought && is for logical 'AND' and || is for logical 'OR'.

[ ! -z "$var" ] && echo "Not empty" || echo "Empty"

Please help


Thank You
1,580
Posted By TomG
Hi, so what I understood is that the cpu...
Hi,

so what I understood is that the cpu time is very small for my process to show, thats why i am getting 0:00. Also i guess this process is doing some IO or other operation(s) majority of the...
1,580
Posted By TomG
Hi, can you please shed some light on , what...
Hi,

can you please shed some light on , what is compute bound?

Thank you
1,580
Posted By TomG
Ps command output confusing
Hi,

I ran a script named cat item
when I searched for this script using command PS
I get two process . I don't understand this. Also this script has run for 15 minutes but the time is showing as...
7,890
Posted By TomG
I believe this link will be of some use The...
I believe this link will be of some use

The UNIX School: ps command : what does the TIME indicate? (http://www.theunixschool.com/2012/09/ps-command-what-does-time-indicate.html)
2,230
Posted By TomG
Ps command showing different states for same process
I am using HP-UX,KSH

$ jobs -l
[1] + 19377 Running nohup ksh cat_Duplicate_Records_Removal.ksh </dev/null >/dev/null 2>&1 &
$ ps -p 19377 -fl
F S UID PID PPID C...
8,022
Posted By TomG
I think the command 'at' can be also used to run...
I think the command 'at' can be also used to run scripts without getting stopped on logout.

at command (http://www.softpanorama.org/Utilities/at.shtml)

The command 'at' can be scheduled to run...
7,890
Posted By TomG
yes i have a problem.(I started playing around...
yes i have a problem.(I started playing around with PS becasue of the below issue). Can you please suggest an alternative method for 'disown' command as its not supported in my HP-UX...
7,890
Posted By TomG
Time field showing Zero in ps command output
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD
401 S catmgr 5748 5742 0 154 20 e0000006d48cd080 133 e0000003fb6e7200 11:22:32 ? ...
8,022
Posted By TomG
Ok..i have rewritten the command as follows ...
Ok..i have rewritten the command as follows

nohup ksh cat_Duplicate_Records_Removal.ksh </dev/null >/dev/null 2>&1 &

earlier when i run the command in background and when enter(CR) is pressed...
8,022
Posted By TomG
ok i ran the script in background $ nohup...
ok i ran the script in background

$ nohup ksh cat_Duplicate_Records_Removal.ksh >/dev/null 2>&1 &
[1] 6679
$ exit
You have running jobs
[1] + Stopped (tty output) nohup ksh...
8,022
Posted By TomG
Thank You.. but my script is not writing...
Thank You..
but my script is not writing anything to the terminal(I have redirected all output to logfile).
I ran the script in foreground and it completed successfully without sending any...
8,022
Posted By TomG
Korn Shell script in stopped state while running in background
Hi,

I want to run a shell script in background .
but its going to stopped state


$ ksh cat_Duplicate_Records_Removal.ksh &
[2] 8975
$
[2] + Stopped (tty output) ksh...
3,268
Posted By TomG
type find xargs find is /usr/bin/find xargs...
type find xargs
find is /usr/bin/find
xargs is /usr/bin/xargs
3,268
Posted By TomG
Xargs -0 not working
Hi,

Can anyone tell me an alternative for -0 argument of xargs.

my os is HP-UX

find . -name "*.sh" -print0 | xargs -0
xargs: unknown option: -0



Thanks
2,307
Posted By TomG
I understood the logic..its was a great debugging...
I understood the logic..its was a great debugging tip to get the content of Pattern space. That was a new learning for me . But for some reason this command was not working in HP-UX without -e
...
2,307
Posted By TomG
This command is actually removing blank lines...
This command is actually removing blank lines from the end of my file.I have tested it.Its true that this line is not reading any \n from the file and appeding to the pattern space, but N in this...
2,307
Posted By TomG
sed one Liner option -e
Hi,

I have the following command.(Delete all trailing blank lines at the end of a file.)

sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'

I don't understand the logic of this command and also I don't...
1,690
Posted By TomG
sed one liner to Delete blank lines - Help required
Hi,

cat test.txt
BlankLine
BlankLine
BlankLine
BlankLine
ello
hi
helo
BlankLine
BlankLine
heylo
BlankLine
BlankLine
BlankLine
done
BlankLine
BlankLine
BlankLine
1,729
Posted By TomG
Can you please explain with contents in test.txt ...
Can you please explain with contents in test.txt

in the input file
__________________
before 'a' there are 3 blank lines.
before 'c' there are 3 blank lines.
before 'e' there is 1 blank line....
1,729
Posted By TomG
23,260
Posted By TomG
Hi Don, Can you please tell me why -o is...
Hi Don,

Can you please tell me why -o is used. I am confused,because both conditions in the brackets have to be satisfied right. So can we use an 'and' condition.

Thank You
23,260
Posted By TomG
Maxdepth option of find command not working
Can you please figure out what is the issue here

$ find . -maxdepth 1 -type f -size 0 -print
find: bad option -maxdepth


please find the OS details
$ uname -a
HP-UX g5u1216 B.11.31 U ia64...
3,624
Posted By TomG
Hi Corona688, Thank You so much , Removal of...
Hi Corona688,

Thank You so much , Removal of space before and after the = helped.

Thank You for the valuable suggestions
Showing results 1 to 25 of 31

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