11-14-2010
Need help with a script for homework
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1.
Create 4 background "sleep" processes. View the list of them and record the output of the "jobs" command.
sleep 200 &
sleep 300 &
sleep 400 &
sleep 500 &
jobs
The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all code and scripts):
4. Lincolon Tech, Mt. Laurel, NJ Frank
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
1. You have a very large file, named 'ColMe', tab-delimited, you are asked to process. You are told that each line in 'ColMe' has 7 columns, and that the values in the 5th column are integers. Using shell functions (and standard LINUX/UNIX filters), indicate how you would verify that these... (1 Reply)
Discussion started by: mb774
1 Replies
2. Shell Programming and Scripting
Can you please help on this?
I am looking for the shell script which does following:-
step 1: It should open the file /u/manish/input/FileIndex.dat and read line by line
step 2: Once first line is read (for ex: File1), we have to find a file, that contains this matching... (4 Replies)
Discussion started by: teteguru1
4 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hello,
My name is Jordan and studying at the New Bulgarian University in Sofiya. This is my homework but can... (2 Replies)
Discussion started by: freestar
2 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi, since I'm relatively new to Unix I need some help. I've installed FreeBSD 8 on a virtual machine and I've done... (4 Replies)
Discussion started by: iLeeT777
4 Replies
5. Shell Programming and Scripting
1. Write a shell script to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether... (1 Reply)
Discussion started by: aninda1989
1 Replies
6. Homework & Coursework Questions
A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc.
Shell : In computing, a shell is a piece of software that provides an interface for... (1 Reply)
Discussion started by: ubun
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
Write a command to display lines ending with the... (1 Reply)
Discussion started by: elh009
1 Replies
8. Shell Programming and Scripting
Here's the assignment. I'll bold the parts that are rough for me. Unfortunately, that's quite a bit lol. The syntax is, of course, where my issues lie, for the most part. I don't have a lot of programming experience at all :/. I'd post what I've already done, but I'm so lost I really don't know... (1 Reply)
Discussion started by: twk101
1 Replies
LEARN ABOUT DEBIAN
catalyst::view::petal
Catalyst::View::Petal(3pm) User Contributed Perl Documentation Catalyst::View::Petal(3pm)
NAME
Catalyst::View::Petal - Petal View Class
SYNOPSIS
# use the helper
create.pl view Petal Petal
# lib/MyApp/View/Petal.pm
package MyApp::View::Petal;
use base 'Catalyst::View::Petal';
__PACKAGE__->config(
input => 'XML',
output => 'XML',
error_on_undef_var => 0
);
1;
# Meanwhile, maybe in an 'end' action
$c->forward('MyApp::View::Petal');
DESCRIPTION
This is the "Petal" view class. Your subclass should inherit from this class.
METHODS
process
Renders the template specified in "$c->stash->{template}" or "$c->request->match". Template variables are set up from the contents of
"$c->stash", augmented with "base" set to "$c->req->base", "c" to $c and "name" to "$c->config->{name}". Output is stored in
"$c->response->body".
config
This allows your view subclass to pass additional settings to the Petal config hash.
SEE ALSO
Petal, Catalyst, Catalyst::Base.
AUTHOR
Christian Hansen, "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-08-10 Catalyst::View::Petal(3pm)