USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

A script request's!

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Shell Scripting and Programming
View previous topic :: View next topic  
Author Message
jonny1
New Member


Joined: 01 Apr 2024
Posts: 1

PostPosted: Wed Apr 01, 2024 11:14 am    Post subject: A script request's! Reply with quote

Hello everybody i'm new about this forum and in scripting bash Surprised .
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.
Wink


Back to top
View user's profile Send private message MSN Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Wed Apr 01, 2024 12:04 pm    Post subject: Reply with quote

several commands might help you get started.

date
time
echo



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Wed Apr 01, 2024 2:03 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Shell Scripting and Programming All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse