04-17-2019
Quote:
Originally Posted by
Circuits
Ah I see so where might I go to look at the code itself, any idea? Would it even be possible?
You mean the code for
wc ?
The start to the answer for that question depends on the operation system you are using / interested in.
9 More Discussions You Might Find Interesting
1. HP-UX
my pragram runs with 3 threads, 2 work threads, one main thread. the 2 work threads run with the same mode and the same code. but now, one of the work thread can't work, and it uses the cpu more than 80%, sometimes uses 100% cpu resource. the another work thread work well.
when I viewed the HP... (2 Replies)
Discussion started by: happylife365
2 Replies
2. Shell Programming and Scripting
Hi guys, I had a question last week where I asked how I check from a website hosted on windows if a process is running on on of our unix servers. Vino and Shell Life kindly replied with a perl script:
if qm') -gt 0 ] ; then
echo "Site is up"
else
echo "Site is down."
# start the... (1 Reply)
Discussion started by: drchris
1 Replies
3. UNIX for Advanced & Expert Users
I have a ksh script that executes a program with a predetermined timeout in minutes. If the program takes longer then the timeout then it still completes with a return code of 0. :confused:
I would like to determine how long the program ran. Then if it takes longer than the timeout I would... (7 Replies)
Discussion started by: 2dumb
7 Replies
4. Shell Programming and Scripting
I have a script that searches for specific information from log files.
#!/bin/sh
sed -n '/*C/,/END/p' /sn/log/OMlog* > crit.out
sed -n '/REPT INITIALIZATION/,/err:/p' /sn/log/OMlog* > switchcc.out
./start.awk /sn/log/OMlog* > ARs.out
./end.awk /sn/log/OMlog* > ARe.out
cat crit.out... (1 Reply)
Discussion started by: grinds
1 Replies
5. 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
6. Programming
i am executing following program
int main()
{ char str;
FILE * fp;
int i=0; ... (4 Replies)
Discussion started by: bhavesh.sapra
4 Replies
7. Shell Programming and Scripting
I have a crontab as below:
PATH=/usr/local/sbin:/bin/:..... etc etc
0 8 * * * /home/user/jobs/poll.sh 2>/dev/null 1>/dev/null
Now the script poll.sh is called at correct time and executes.
This is how poll.sh looks like
#!/bin/bash... (2 Replies)
Discussion started by: chakrapani
2 Replies
8. Homework & Coursework Questions
I need help program in C... :create a program that runs two processes linked oven (1 Reply)
Discussion started by: gizmo16
1 Replies
9. Shell Programming and Scripting
I have a script like this:
echo "enter filername in lowercase"
read -e filername exec 2>&1
echo "type the start date in format MM/DD/YYYY"
read -e startdate exec 2>&1
echo "enter the end date in format MM/DD/YYYY"
... (2 Replies)
Discussion started by: newbie2010
2 Replies
LEARN ABOUT DEBIAN
mdm.screen
MDM.SCREEN(1) User Commands MDM.SCREEN(1)
NAME
mdm.screen - run a command under mdm-master
SYNOPSIS
mdm.screen [-c iospec] [-n slaves] command
DESCRIPTION
mdm.screen runs command under mdm-master so that mdm-run commands in command can run in parallel.
This program is a part of the Middleman System (mdm).
OPTIONS
The mdm.screen command has two optional options.
-c iospec
The iospec file (see below).
-n slaves
The number of mdm-slave process to start (default 6).
THE IOSPEC FILE
mdm-master uses the iospec file to decide whether two commands interfere with each other, and it only runs two commands at the same time if
they do not interfere.
Each line of the iospec file specifies the I/O behavior of a program, unless the line starts with a '#' character, in which case the line
is treated as comments and ignored. The format is as follows:
program spec spec ...
program names the program whose behavior you are specifying. For each spec element, the first character indicates usage, and the remaining
characters indicate resource.
A resource that starts with a '-' character represents the argument of the corresponding program option. A resource that is an empty
string represents a program argument. A resource that is not empty and does not start with a '-' character represents the resource string
itself.
A usage is typically an upper-case character. If two commands access the same resource with different usage, mdm-master will not run these
two commands at the same time. Furthermore, if a command access a resource with 'W' usage, mdm-master will not run it with any command
that access the same resource in any way (including 'W'). There is a special case: if usage is '0' and resource starts with a '-' charac-
ter, it means that the resource program option does not take any arguments.
All programs has an implicit spec 'Rglobal', so if you mark a program as 'Wglobal', it will not run while any other command is running.
Here is an example to help clarify matters. Suppose we have the following iospec file:
cc W-o 0-c R
rm W
Then these two commands can run at the same time:
cc -o pa pa.o lib.o
cc -o pb pb.o lib.o
These two commands cannot run at the same time:
cc -o pa.o -c pa.c
cc -o pa pa.o lib.o
And these two commands also cannot run at the same time:
cc -o pa pa.o lib.o
rm pa
EXIT STATUS
The exit status of mdm.screen is 0.
EXAMPLE
Here is what you do to decompress all files with .gz extension in the current directory tree.
mdm.screen find . -iname '*.gz' -exec mdm-run gunzip {} ;
Since we run find under mdm.screen and invoking gunzip under mdm-run, we specify that we wish to run the gunzip commands in parallel.
SEE ALSO
mdm-run(1), mdm-sync(1), ncpus(1)
Linux 2009-03-06 MDM.SCREEN(1)