Re: Script advice
From: Tony Lawrence (foo_at_pcunix.com)
Date: 08/03/05
- Next message: Jean-David Beyer: "Re: When Kill dosen't work"
- Previous message: Unruh: "Re: debugging init script in FC4"
- In reply to: Alan Secker: "Script advice"
- Next in thread: Alan Secker: "Re: Script advice"
- Reply: Alan Secker: "Re: Script advice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Aug 2005 07:05:20 -0400
Alan Secker wrote:
> I'm about to start compiling and linking program modules under Linux. I
> previously did this under Windows and used a batch file. I want to do the
> same in Linux but the absence of a goto stastement has thrown me a bit.
>
> This is what happens under Windows
>
> The batch file is called by one of three switches:
>
> edit
> compile and link
> run (in debug mode).
>
> If 'edit is chosen, all three processes will be run. If 'run' is selected
> only the last one is run. There is a pause between each process allowing
> escape to the prompt, otherwise it goes back to the top again.
>
> My problem is identifying how to construct an effective loop. Needless to
> say, my script eforts so far have not required constructs of any kind!
>
> TIA
>
> Alan Secker
>
As another poster said, you are looking for a Makefile (see
http://aplawrence.com/Linux/c_compiling_linux.html) , but just as a more
general comment: you mention "goto" but then say "effective loop".
Bash (and all Linux shells) have looping;
http://aplawrence.com/Basics/bash_looping.html might help get you
started with that.
-- Tony Lawrence Unix/Linux/Mac OS X resources: http://aplawrence.com
- Next message: Jean-David Beyer: "Re: When Kill dosen't work"
- Previous message: Unruh: "Re: debugging init script in FC4"
- In reply to: Alan Secker: "Script advice"
- Next in thread: Alan Secker: "Re: Script advice"
- Reply: Alan Secker: "Re: Script advice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|