[lug] scripting on linux!! or "Oh yeah!!!"

John Starkey jstarkey at advancecreations.com
Tue Sep 26 13:54:16 MDT 2000


I was sent 70 images to be posted in a slide show format. So each file
needed standard html and an img tag. 

I used the scripts Chip sent me to:

1) Copy slide one 69 times and increment the file name each time
(slide001.html, slide002.html, etc.)

2) Change the img tag in each to reflect it's image. (file1 - image 1,
file 2 - image 2, etc)

3) Now these slides need to be broken down into sections and linked from
the home page so I'll be using the same scripts to do this.

It's a slide show/lecture for an online course in Photoshop. The Professor
is doing the online thing for the first time so sometimes it tends to be a
little pushed. Like now I have to have her lecture available for tomorrow
morning.

Not sure if this answers your question.

John




On Tue, 26 Sep 2000, King, Kevin wrote:

> And the final result is...?
> 
> > -----Original Message-----
> > From: lug-admin at lug.boulder.co.us 
> > [mailto:lug-admin at lug.boulder.co.us]On
> > Behalf Of John Starkey
> > Sent: Tuesday, September 26, 2000 12:31 PM
> > To: lug at lug.boulder.co.us
> > Subject: Re: [lug] scripting on linux!! or "Oh yeah!!!"
> > 
> > 
> > One for Linux!!
> > 
> > I posted to this list at 10:50. Recieved a personal reply 
> > from Chip within
> > 10 minutes and a few others within 15. And an hour after that 
> > I've managed
> > to do, with the help of the list, something which would take 
> > about 2 hours
> > to do in Windoze. So one hour to ask for help, relay the parameters,
> > recieve an answer run the two scripts and it's done. Right now I'd be
> > restarting Windoze because it had crashed when I moved the 
> > mouse too fast
> > (lol!!).
> > 
> > Anyone have Bill's number. We gotta talk about this tech 
> > support issue :}
> > 
> > Thanks,
> > 
> > John
> > 
> > On Tue, 26 Sep 2000, John Starkey wrote:
> > 
> > > It's scary how close the thread is to the grep thread, both issues
> > > (related to using grep) coming up the same day.
> > > 
> > > I have one weekly job that involves 70 files as a simple 
> > slide show. These
> > > will be broken down into groups of 10 (approx.). Normally 
> > when I'm coding
> > > (html) this many files I'll go to a land of Windoze cubicles and use
> > > HomeSite due to it's find and replace abilities. I do this 
> > knowing well
> > > enough that Linux can do a hell of a lot better job but I 
> > can't find the
> > > time to get into shell scripting. It's one of those investments that
> > > I know will pay off but, like today, I have to have 70 
> > files uploaded by
> > > tomorrow morning at the very latest.
> > > 
> > > So with that said, is there anyone with a vengance against 
> > Windoze that
> > > could help with a couple scripts. If I can pull this off 
> > it'd make a great
> > > argument against Windoze at work. Where someone said just 
> > last week "yea
> > > but look at what Bill has done for the world".  
> > > 
> > > 1) I need to create 70 files, all identical except for 2 
> > numbers in the
> > > <img> tag. These two numbers need to increment relative to 
> > the file name
> > > (file1 -> <img src="001">; file2 -> <img src="002>) ( a 
> > slide show ).
> > > 
> > > 2) When the client sends the layout I'll need to break 
> > these 70 files down
> > > into groups and rename both the files and images (140 files at this
> > > point). I could probably work this without changing the names.
> > > 
> > > 3) Certain files will need navigation buttons. So I'll need 
> > to specify
> > > which file and where in the file to place these buttons. 
> > > 
> > > I estimate 4 hours to do all this in HomeSite. I have a 
> > feeling this can
> > > be done in less than an hour in Linux.
> > > 
> > > What confuses me the most is the xargs (Build and execute 
> > command line
> > > from standard input)?? Does this mean you make the file 
> > stdin and execute
> > > the commands from what the file returns?? Why not just 
> > ./scriptfile and
> > > get it over with.
> > > 
> > > Thanks,
> > > 
> > > John
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Web Page:  http://lug.boulder.co.us
> > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > 
> > 
> > 
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > 
> > 
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 





More information about the LUG mailing list