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: Nathan
Date:  
To: Main PLUG discussion list
Subject: Re: Can I add a command in bash that starts when I open it?
On Thursday 23 October 2008 22:16:46 Mike Hoy wrote:
> Just out of curiosity can I have a command execute when I open command
> line?
>
> Thought I would have:
>
> cat /proc/acpi/thermal_zone/THRM/temperature
>
> start up each time I opened it so I could check my temperature regularly.
>
> I searched for the answer and the closest answer I got was putting it
> in /etc/rc.local, but that didn't work.
>
> Thanks,
>
> Mike Hoy
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




Simple. Add that command to your .bashrc file. Some shells use .profile
instead. Play around with that.

echo cat /proc/acpi/thermal_zone/THRM/temperature >> .bashrc

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