Search Results

Search: Posts Made By: Nick31
9,369
Posted By Nick31
That's a tricky one since ps formats the start...
That's a tricky one since ps formats the start time differently depending on how long it's been running, and the formats don't lend themselves to sorting. What I did is write a perl script to read...
53,233
Posted By Nick31
How secure do you need it to be? Here's a thread...
How secure do you need it to be? Here's a thread (https://www.unix.com/unix-for-dummies-question-and-answers/7764-file-encryption-and-decryption-in-unix.html) about using the crypt command, but the...
12,254
Posted By Nick31
Well, it depends somewhat on what shell you're...
Well, it depends somewhat on what shell you're using and which specific UNIX OS. There's a built-in fc command to the Korn shell, and some (most?) flavors of UNIX have a fc program. I've never...
5,650
Posted By Nick31
That's exactly what the -p option does. Think of...
That's exactly what the -p option does. Think of it as instead of searching line by line, search section by section, with the section divider being "=======", for whatever. Instead of just printing...
5,650
Posted By Nick31
Well, you could do it in perl by building an...
Well, you could do it in perl by building an array of 11 strings, and push in your lines until your array is full. Then check the 8th string for your pattern. If it doesn't match, pop the first one...
9,369
Posted By Nick31
I'm guessing that the first line of Test1.sh is...
I'm guessing that the first line of Test1.sh is using the #! to specify the shell? Something like:
#!/usr/bin/ksh

Environment=...

That means the process that you're checking IS the shell. ...
48,242
Posted By Nick31
It would work if you use the enhanced korn shell...
It would work if you use the enhanced korn shell (ksh93). For something that takes this long it might be worth testing to see which is faster, assigning it to a one character variable with typeset...
Forum: Programming 06-27-2007
5,995
Posted By Nick31
I think that what Porter is suggesting is a...
I think that what Porter is suggesting is a intermediate process that is the parent of the final process - a child to generate a grandchild you might say. Then when your initial process (the...
Showing results 1 to 8 of 8

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