Re: How to check the number of terminals open from inside a shell script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Whoops - apologies.  Friday afternoon :-)


On 29/10/2010 16:26, "Joachim Backess" <joachim.backes@xxxxxxxxxxxxxx>
wrote:

> On 10/29/2010 03:39 PM, Mark Liggett wrote:
>>  Hi Sumatheja,
>> 
>> I¹m guessing you want a script to run only once (did say whether it was
>> per user).  You could add your script to the .bashrc file ­ this way the
>> script would run once when the user logs on.  Alternatively run the
>> script and export an environment variable ­ then check it using an if
>> statement before you run the script again, eg;
>> 
>> if [ -n ³$script-has-run-envar² ]; then
>>     <source_script>
>>     script-has-run-envar=²Yes²
>>     export $script-has-run-envar
> 
> I think you mean -without the $ char-  ;-)
> 
>       export script-has-run-envar
> 
> Regards
> 

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux