01-30-2006
Rules violation
Posting of assignments on the forum is not allowed.
However, you seem to have taken some efforts on your assignment.
I have a piece of question here
you do a
close(tubo1[0]);
close(tubo1[1]);
and then you do a pipe(tubo1);
anyway can you explain what exactly is the issue, do you get some program errors, compile time, run time or the program is running but not as expected ?
8 More Discussions You Might Find Interesting
1. Programming
hi there, im trying to produce this program that would run at first, and when it runs it will fork one child process to a program and then another forking to run this other program, and then another one .
i cant seem to get it right can someone help me please here is what is got so far:
int... (1 Reply)
Discussion started by: zmanultra
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I often need to find the child processes of a parent process. There may be a string of 4-5. That is, PPID 884 spawns 890, which spawns 894, which spawns 1017. I'd like to be able to see all of them without having to type in a number of ps -ef commands.
Process groups and session ID's are... (2 Replies)
Discussion started by: mschwage
2 Replies
3. Shell Programming and Scripting
Hi, I am a shell scripting newbie. I am in need of a shell script that will prepend the name of the parent directory to the child directory.
For example if the shell script called rename.sh is invoked with ">rename.sh /home/foobar/Simple" and the structure of the folder Simple is :
Simple... (7 Replies)
Discussion started by: kalichar
7 Replies
4. UNIX for Advanced & Expert Users
Hi, as I understand fork(), it makes a copy of the parent which becomes a child. But is there anyway to make three children for that one parent. So in other words, if I look up the getppid() of the children, I want them to have the same value??
Thanks in advance to any help! (1 Reply)
Discussion started by: MS_CC
1 Replies
5. UNIX for Dummies Questions & Answers
Hi..
I was unable to do (gcc code) which refers to the fork,wait,sleep and write..
what i want to do:
A process of father create (fork) a son and will sleep 90 seconds..After this, son process create a grandchild and will sleep 60 seconds..Grandchild process will sleep for 30 seconds..After... (3 Replies)
Discussion started by: gumlucin
3 Replies
6. Shell Programming and Scripting
Hi all,
I have been searching all day for a nice solution to this problem.
I have three scripts. A start script, a child script and a stop script.
Script A (scripta.sh)
Its Child Script B (scriptb.sh)
Script C (kill_process.sh $PID)
Script A correctly traps the kill command sent from... (6 Replies)
Discussion started by: mark007
6 Replies
7. Shell Programming and Scripting
Hello!
I saw that there were a few differente ways to do math within bash scripts.
expr and bc are possibilities. But which one to use when?
I want to make an simple bash script for children to do math.
The script must ask only questions like 1*1= till 10*10= ...
No + or - or /... (10 Replies)
Discussion started by: ugurgazi
10 Replies
8. Shell Programming and Scripting
Hi, I want to display the process tree of a given PID, however, I don't want to see other children of the ancestors that don't reach the current PID.
My goal is, from the tree result, i have to fetch a particular parent process by keyword, and if any other children from parents have the same... (2 Replies)
Discussion started by: ysrini
2 Replies
LEARN ABOUT CENTOS
amstatus
AMSTATUS(8) System Administration Commands AMSTATUS(8)
NAME
amstatus - display the state of an Amanda run
SYNOPSIS
amstatus [--file amdumpfile] [--summary] [--dumping] [--waitdumping] [--waittaper] [--dumpingtape] [--writingtape] [--finished] [--failed]
[--estimate] [--gestimate] [--stats] [--locale-independent-date-format] [--config] config
DESCRIPTION
Amstatus gives the current state of the Amanda run specified by the config configuration. If there is no active Amanda running, it
summarizes the result of the last run. It may also be used to summarize the results of a previous run.
See the amanda(8) man page for more details about Amanda.
OPTIONS
All options may be abbreviated to the shortest non-ambiguous sub-string. If no options are given, everything is displayed.
[--config] config
Specify the Amanda configuration you want to display the state for.
--file amdumpfile
Specify an alternate file instead of the amdump or amflush file.
--summary
Display a summary of the state of the run.
--dumping
Display all partitions that are dumping.
--waitdumping|wdumping
Display all partitions that are waiting to be dumped.
--waittaper|wtaper
Display all partitions dumped that are waiting to be written to tape.
--dumpingtape|dtape
Display all partitions that are dumping directly to tape.
--writingtape|wtape
Display all partitions that are writing to tape.
--finished
Display all partitions that are dumped and written to tape.
--failed|error
Display all partitions that failed.
--estimate
Display all partitions whose estimate is finished. Works only during the estimate phase.
--gestimate|gettingestimate
Display all partitions whose estimate is not finished. Works only during the estimate phase.
--stats|statistics
Display statistics about active-time of taper and dumpers.
--locale-independent-date-format
Output the date in a locale independent format. The format is the same executing: date +'%Y-%m-%d %H:%M:%S %Z'
EXIT CODE
The exit code of amstatus is the ORed value of:
0 = success
1 = error
4 = a dle failed
8 = Don't know the status of a dle (RESULT_MISSING in the report)
16 = tape error or no more tape
SEE ALSO
amanda(8), amcheck(8), amdump(8), amrestore(8), amadmin(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Stefan G. Weichinger <sgw@amanda.org>
Amanda 3.3.3 01/10/2013 AMSTATUS(8)