[TxMt] global (project-)command questions [... how to make a command to restart apache and reload a test page in the browser]

Dirk van Oosterbosch, IR labs labs at ixopusada.com
Thu Nov 2 13:33:03 UTC 2006


On 1-nov-2006, at 20:15, Allan Odgaard wrote:

>> [...] if I try to make it into a oneliner the variable replacement  
>> fails:
>>   osascript -e 'tell app "Safari" to open location  
>> "$IR_LABSITE_TESTURL"'
>
> In single quotes, the shell does not expand variables. It does it  
> for double quotes, so try instead:
>     osascript -e "tell app \"Safari\" to open location  
> \"$IR_LABSITE_TESTURL\""
>

Thanks Allan, you're the greatest.
that works perfectly.


>> 3. What does the '-ne'  in  'if [[ $(ps -xp $PPID|wc -l) -ne 2 ]];  
>> then' do?
>
> You can do ‘man test’ to see what the options do. -ne is “not equal”.

Aha, now I see. Thanks. I didn't realize [ stands for test, and that  
you can just do a 'man test'. Still wondering though what the  
difference between [ ... ] and [[ ... ]] is, but I guess I'll have to  
figure that out off-list ;)



More information about the textmate mailing list