It is currently Thu Feb 22, 2018 12:40 am

A script request's!

All times are UTC

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Wed Apr 01, 2009 11:14 am   
New Member

Joined: Wed Apr 01, 2009 11:03 am
Posts: 1
Hello everybody i'm new about this forum and in scripting bash :o .
Today have tried the OS exam and i can't resolve it. Sorry for my bad english.
This is the question:

Write a script that when start write a file with a table like this one:

<Process Name1> <PID1> <file path1> <Time when start1> Started
<Process Name2> <PID2> <file path2> <Time when start2> Started
<Process Name2> <PID2> <file path2> <Time when terminate2> Terminated
<Process Name2> <PID2> <file path2> <Time when terminate2> Terminated

I'm really grateful to everyone will write this, i think easy, script.

 PostPosted: Wed Apr 01, 2009 12:04 pm   
Site Admin
User avatar

Joined: Thu Apr 17, 2003 3:44 am
Posts: 12300
Location: Iowa
several commands might help you get started.



Zbook (Laptop)- Mint 18 64-bit - I7-4800mq - 32GB ram
Phantom (Desktop)- Mint 64-bit - i7-5770 - 32GB ram
Nas4Free (NAS) - 6X3TB File Server.
Sky (HP BladeCenter) - 16 blades - 536 GB ram-G7/G6/G5 blades.

 Profile WWW  
 PostPosted: Wed Apr 01, 2009 2:03 pm   
Advanced Member
User avatar

Joined: Fri Jul 18, 2008 4:54 pm
Posts: 608
Location: South Portland, Maine, USA, Earth, Sol System
Hmm.... Sounds like a homework question to me...

reading up on the man page of the ps command might give you some ideas.

ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)

 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

Powered by phpBB © 2012 phpBB Group