8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good evening.
because the folder has thousand of files it takes too long and have some trouble to get the largest files and then compress files or delete it, for instance
find . -size +10000000c -exec ls -ld {} \; |sort -k5n | grep -v .gz
The above commad took an hour and i have to cancel... (10 Replies)
Discussion started by: alexcol
10 Replies
2. Shell Programming and Scripting
Hello All,
I need to run a set of scripts, say 50 of them, parallely. I'm running these 50 scripts, from inside a script with the help of 'nohup' command.
1.The fifty scripts are stored in a separate file.
2.In a master script, i'm reading every line of the file through loop and executing... (4 Replies)
Discussion started by: SriRamKrish
4 Replies
3. Shell Programming and Scripting
The end result that I'd like is to terminate any process on my ps -u username list that extends beyond 20 minutes. I know for a fact that this process will be named l.exe, but I don't know the number in between and I won't know the PID. Is there a way to use grep or pidof to do this task every 20... (2 Replies)
Discussion started by: Bolanok
2 Replies
4. Shell Programming and Scripting
Does screen command run forever?
Suppose I have following command inserted at my putty shell followed by screen
# screen
# export JAVA_HOME=/usr/java/jdk1.6.0_21
# export ANT_HOME=/usr/ant
# export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin
# export... (0 Replies)
Discussion started by: ninadgac
0 Replies
5. UNIX for Dummies Questions & Answers
What's the best way to find a string in a very long file without newlines in Unix? The standard utility I'm aware of for finding a string in a single file is grep, but for a long file without newlines, I think the output is just going to be the input. I suppose I could use sed to replace the... (5 Replies)
Discussion started by: aaronpoley
5 Replies
6. Shell Programming and Scripting
When running a ksh script, how would you time how long it took the script ran for?
Is there a command that can capture this? (1 Reply)
Discussion started by: Jazmania
1 Replies
7. Solaris
hi,
how do i find boot reason in solaris?
i know that signal 15 reboot is a manual reboot...
#cat /var/adm/messages | grep -i signal
what does this mean from #last -10
"reboot system boot Sun Oct 19 09:24"
is it a system boot (auto reboot by the server) or human... (5 Replies)
Discussion started by: cromohawk
5 Replies
8. UNIX for Dummies Questions & Answers
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
Discussion started by: cfoxwell
3 Replies