🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3817

Writing a script

#3817
From: Jody Zung
Date: Wed, 06 Dec 2000 00:00
23 lines
1849 bytes
Hi folks. I'm new to writing shell scripts in unix so maybe someone
could help me out here.
I'm lookin to run some automated test cases. What I need to do is run a
process and output the results. Actually there is more I need to do but
I need to walk before I can run.

So basically it'll look like this.

I have a process called OMC that I run on a file. There are options as
well, so a command from the unix prompt would look like this:

omc  -dtmlckf -o <output dir> <filename.lib>

Then the thing runs for a while and ouputs a huge amount of stuff.
After this I want to check the output directory for the correct files.

So i'll cd to the output directory, do an ls, or ll and visually check
for the needed files.

Is there a way i can do all of this in a script and output to a results
file??

thanks in advance.
Technical Details
Message-ID: <3A2E6922.61778861@siliconmetrics.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,447395ef176ca092,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 11035d,447395ef176ca092,start
X-Google-Attributes: gid11035d,public
X-Google-Thread: 1025b4,447395ef176ca092,start
X-Google-Attributes: gid1025b4,public
From: Jody Zung <jzung.zung@siliconmetrics.com>
Subject: Writing a script
Date: 2000/12/06
Message-ID: <3A2E6922.61778861@siliconmetrics.com>
X-Deja-AN: 701808633
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@GigaNews.Com
X-Trace: sv2-hUuwBRqpRSHvAbyCeWDdEMX8CiKFs5JIvC2u+a5SMar5UOCbPVUAbkQWjvsRDshVaj6yqNO7JdShvX6!68LtaFWdEMWiwlpHedDQXwwYW5zgRgZOfQM4
Organization: Giganews.Com - Premium News Outsourcing
MIME-Version: 1.0
NNTP-Posting-Date: Wed, 06 Dec 2000 10:28:28 CST
Newsgroups: comp.unix.programmer,comp.unix.solaris,gnu.misc.discuss