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.
- 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 ;)