Simple shell script
Derek Broughton
news at pointerstop.ca
Sun Oct 7 16:28:10 UTC 2007
Marius Gedminas wrote:
> On Sun, Oct 07, 2007 at 02:48:14PM +0300, OOzy Pal wrote:
>> Dears,
>>
>> I have the following script to start webmin and it sync'ed between my
>> laptop and desktop. How can I make the script detected if it is
>> running in the laptop or desktop. For example
>>
>> Original Script
>> sudo /etc/webmin/start
>> firefox -new-tab http://laptop:10000/
>
> Wouldn't http://localhost:10000/ work on both machines?
If that's not what he's really trying to do, "hostname" will allow a script
to tell what host it's running on.
--
derek
More information about the ubuntu-users
mailing list