yes , what I would like to do is eating up an additional file descriptor , would advsie a simple script to do that ?
thanks
---------- Post updated at 12:29 PM ---------- Previous update was at 10:35 AM ----------
I just would like have a script to repeatedly eating up open files , so that make it increase to a certain level
I told you exactly what to do in post #2 in this thread. Above is an example of how to waste time with five file descriptors. Feel free to increase this to a thousand file descriptors if you want. I make no guarantee that any shell will work if you nest this to 1000 levels instead of 5. And, I see no reason why doing so would be advantageous in any real-world application.
Hi Gurus,
Could you please help me to create a shell script that will be started by a cron job once every night at 24.00 h (that should bee easy:))
The shell script should control every 30 seconds the name of a process, and when the process doesn't run anymore it should execute a few further... (12 Replies)
Hi all,
I need a script that will loop around all the current processes and take a pmap -x <process id> and output each pmap to a separate file.
Would anyone have a quick command to do this? (2 Replies)
for two txt files, f1 and f2, I like to do the following
grep "abcde" f1 > abcde$f1
grep "xyz" f1 > xyz$f1
can I use a loop to get this done? Thanks
for i in f1 f2
do
grep "abcde" $i > abcde$i
grep "xyz" $i > xyz$i
...
done (11 Replies)
Hi,
I want to create a script who will check if the java process is running & if it finds the process is still there it continues to execute & when the process completes it exit from the script.
I have written a code to check & notify the process existence but i am not getting how to write... (4 Replies)
I have multiple input files that I want to manipulate using a shell script. The files are called 250.1 through 250.1000 but I only want the script to manipulate 250.300 through 250.1000. Before I was using the following script to manipulate the text files:
for i in 250.*; do
|| awk... (4 Replies)
I have the following code running against a file. The file can have upwards of 10000 lines.
problem is, the for loop takes a while to go through all those lines. is there a faster way to go about it?
for line in `grep -P "${MONTH} ${DAY}," file | ${AWK} -F" " '{print $4}' | awk -F":"... (2 Replies)
Hi,
I have a script which triggers an infinite loop.
#!bin/bash
trig=`ls /home/trig.tch |wc -l`
function callj {
some commands...
}
while
do
callj &
done
The number of process after doing a ps -ef |grep Mon.sh returns
processes even after the script is killed by deleting the... (4 Replies)
Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Hi
I have following codecd /tmp/test/
for vfile in `ls -1`
do
for vlink in `ls -l /tmp/testfile/*|bin/grep "local/init\.d/$vfile$"|bin/awk -F"->" '{print($1)}'|bin/awk -F"/" '{print($NF)}'`
I know `ls -1` list only file, but I don't... (3 Replies)
I have a folder with files and I have to process them in a loop. However the filenames have space characters, so the list get split.
$ touch "File Number_1"
$ touch "File Number_2"
$ ls "/tmp/File Number"_*
/tmp/File Number_1 /tmp/File Number_2
I tried following (sorry for using the... (3 Replies)