OT: command-line launch firefox problem

joe at actionline.com joe at actionline.com
Sat Mar 18 10:36:24 MST 2017


Thanks again ET.

But I think you've made it more difficult
than it needs to be with all the 'echo' stuff.

Can't I just open the file in bin/ff
write in the code that you suggested
and set the permissions to rwx?

Joe

-----------
> # WAIT!!!
> # Minor correction, and you can just do it, you won't hurt anything.
>
> # Do:
> # Cut'n paste the 4 lines below:
>
> mkdir -pv ~/bin/
> echo "#! $(which bash)"|sed -e 's/ //g' > ~/bin/ff
> echo 'nohup firefox "$@" >/dev/null 2>&1 &' >> ~/bin/ff
> chmod 755 ~/bin/ff
> . .bashrc
> ff test.htm
>
> # Done...
> # ET
>
> kitepilot at kitepilot.com writes:
>
>> # Cut'n paste the 4 lines below:
>>
>> mkdir ~/bin/
>> echo "#! $(which bash)"|sed -e 's/ //g' > ~/bin/ff
>> echo 'nohup firefox >/dev/null 2>&1 &' >> ~/bin/ff
>> chmod 755 ~/bin/ff
>>
>> #Then:
>> . .bashrc
>> ff
>>
>> # Enjoy...   :)
>> # ET
>>
>>
>> joe at actionline.com writes:
>>
>>> ET wrote:
>>>> You can't 'correct' problems, developers would have to do that.
>>>> But you can hide them:
>>>> firefox >/dev/null 2>&1 &
>>>
>>> Thanks ET ...
>>>
>>> So, I tried this:
>>>
>>> firefox test.htm >/dev/null 2>&1 &
>>>
>>> And that seemed to mask the problem,
>>> although I still wonder if there might
>>> be some way to further address the problem.
>>>
>>> Also, I wonder if there is a way to make
>>> a script named 'ff' so I could just do:
>>>
>>> ff test.htm
>>>
>>> to get that same /dev/null result?
>>>
>>> Joe
>>>
>>>
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss




More information about the PLUG-discuss mailing list