Re: "6 day compile" (1 GHz G4) DONE in 7 hours (8 core Intel 3.0 GHz over SSH)
Re: "6 day compile" (1 GHz G4) DONE in 7 hours (8 core Intel 3.0 GHz over SSH)
- Subject: Re: "6 day compile" (1 GHz G4) DONE in 7 hours (8 core Intel 3.0 GHz over SSH)
- From: "Paul Sargent" <email@hidden>
- Date: Fri, 15 Jun 2007 09:51:04 +0100
Or....
put all the commands in a file, one on each line. Put '#!/bin/sh' on
the first line (no quotes), and voila. Your first shell script.
To make it executable, type 'chmod +x scriptname'
To run it, type './scriptname'
For example:
------------- Contents of foo.sh ---------------
#!/bin/sh
gcc -o file1.o -c file1.c
gcc -o file2.o -c file2.c
gcc -o myprog file1.o file2.o
------------- Contents of foo.sh ---------------
At prompt:
# chmod +x foo.sh
# ./foo.sh
Then you can run it as many times as you need to.
P.S. What you really want is a makefile, but this will be quicker (to
write if you don't know makefiles) if you're not planning on lots of
compile runs.
On 6/15/07, Kai-Mikael Jää-Aro <email@hidden> wrote:
Helmut Brandt kirjoitti 2007-06-15 kello 5:28:
>
> Anyway, if anyone can tell me how to feed a stream of commands to a
> shell that will execute one after another (no forking), I would
> appreciate it.
command1 ; command2 ; command3 ; command4
will run the four commands sequentially in most shells.
--
Kai-Mikael Jää-Aro <email@hidden>
Telestream AB Tel: +46 70 202 6494
Rådmansgatan 49 Skype: kaimikaeljaaaro
SE-113 60 Stockholm AIM: email@hidden
Sweden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden