Re: Can I add a command in bash that starts when I open it?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Hoy
Date:  
To: Main PLUG discussion list
Subject: Re: Can I add a command in bash that starts when I open it?
That's cool I got it all working now, just had to remove what I typed
at the bottom of it and it let me login

On Sat, Oct 25, 2008 at 8:25 AM, Dazed_75 <> wrote:
> On Sat, Oct 25, 2008 at 1:28 AM, der.hans <> wrote:
>> Am 24. Okt, 2008 schwätzte Mike Hoy so:
>>
>>> I edited this file and put echo cat
>>> /proc/acpi/thermal_zone/THRM/temperature >> .bashrc at the end of it.
>>
>> You put the echo command in your .bashrc?
>>
>> If so, move your .bashrc to some other name, for example:
>>
>> mv -i .bashrc .bashrc.horked
>>
>> You might need to run that as root if you can't login as you.
>>
>> You probably have lots of extra information at the end of your .bashrc
>> file and they're causing your login to fail.
>>
>> ciao,
>>
>> der.hans
>> --
>
> Mike, the reason der Hans says this is that the "echo cat ... >>
> .bashrc" was not meant to be put into the .bashrc file but rather as a
> command to append the "cat /proc/acpi/thermal_zone/THRM/temperature"
> line to .bashrc. By putting the echo line into .bashrc, you append
> the cat line every time .bashrc is used thereby borking/horking the
> file. So Hans is having you get that file out of the way so it can be
> replaced or rebuilt.
>
> --
> Man is the only animal that laughs and weeps, for he is the only
> animal that is struck with the difference between what things are and
> what they ought to be.
> - William Hazlitt
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>




--
Mike Hoy
Saguaro Sports
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss