Skip to Content.
Sympa Menu

baslinux - Re: [BL] help on understanding script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Neo Sze Wee <neoszewee AT gmx.net>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] help on understanding script
  • Date: Fri, 16 May 2003 14:39:15 +0000

On Thu, May 15, 2003 at 11:34:19PM -0500, James Miller wrote:
> After considering Steven's input on the script, I decided to just make
> everything following !*/bin/sh into a file called "timehosts" or
> "setdate," respectively. I then changed the permissions accordingly and
> made the files executable. They worked great! Only problem was, the time
> scripts were setting my system and hardware clocks to GMT (5 hours later
> than my time zone). I wasn't quite sure how to fix this, but a bit of
> research convinced me I should have a /usr/share/zoneinfo/US/Central file
> on my system, and that a corresponding file - /etc/localtime - should
> be symlinked to it. I had neither. Not surprisingly for me, my BL2
> system lacked a zoneinfo dir altogether, not to mention the dirs and files
> under it. Undaunted, I created the dirs de novo. That left the problem of
> the "Central" file. Utilizing methods acquired during a lengthy career in
> tech cannibalism, I decided to rob the file from my newer and fuller Debian
> machine and made the necessary symlink to it in /etc. It worked: the
> "timehosts" and "setdate" scripts began setting my system's time to local
> time instead of GMT.
>
> The ethical Linux observer will note that I cheated, and I shamefacedly
> won't dispute the point. I know I should probably have learned how to
> program in Perl or perhaps built my own atomic clock out of spare
> computer parts before undertaking this task . . . but I didn't. As a
> means of atonement though, I would like to ask the ethical Linux user:
> "how would you have handled this?" - hoping to someday be capable of

The same. To answer your previous post, cat is a command to output a
file to the standard output. It is similar to type in dos.

> emulating at least his lofty moral character, if not his technical
> prowess. Any on list who would care to answer for him/her are asked
> please to do so.
>
> James
> _______________________________________________
> BasLinux mailing list
> BasLinux AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/baslinux





Archive powered by MHonArc 2.6.24.

Top of Page