SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-01-28 22:38:38

Mich
#! Member
Registered: 2009-01-22
Posts: 97

[Resolved] Any difference in "pidgin" and "pidgin &" ?

Using pidgin and wanted to autostart it upon login.

Should I add pidgin or pidgin & or pidgin && in autostart

Is there a real difference?

Offline

Help fund CrunchBang, donate to the project!

#2 2009-01-28 22:42:01

ZeroTruths
#! Junkie
Registered: 2008-12-31
Posts: 331

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

By using pidgin everything will wait for pidgin to finish, aka close.
By using pidgin & it will execute pidgin, and then move along. No stall.
And I'm just not sure about the last one.

So you want to use pidgin & for autostarting.


All in an effort to learn...
Delves deeper into code...

Offline

#3 2009-01-28 22:46:03

sgosnell
Member
Registered: 2009-01-28
Posts: 14

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

You almost always want to use the & after running any program, in a script or in the terminal.

Offline

#4 2009-01-28 22:48:42

Mich
#! Member
Registered: 2009-01-22
Posts: 97

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

ZeroTruths wrote:

By using pidgin everything will wait for pidgin to finish, aka close.
By using pidgin & it will execute pidgin, and then move along. No stall.
And I'm just not sure about the last one.

So you want to use pidgin & for autostarting.

Got that, thanks.

Just tested and wanted to share this.

pidgin in autostart.sh and upon login, my keyboard is not working, pagar is partially missing sad

pidgin & in autostart.sh , so far so good big_smile

Offline

#5 2009-01-28 22:55:44

ZeroTruths
#! Junkie
Registered: 2008-12-31
Posts: 331

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

Mich wrote:

pidgin in autostart.sh and upon login, my keyboard is not working, pagar is partially missing sad

When that happens, you just need to kill pidgin, and then all will be restored (it happened to me w/ wine smile)


All in an effort to learn...
Delves deeper into code...

Offline

#6 2009-01-29 06:45:51

papparonny
#! Junkie
From: norway
Registered: 2009-01-16
Posts: 273

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

ZeroTruths wrote:

By using pidgin everything will wait for pidgin to finish, aka close.
By using pidgin & it will execute pidgin, and then move along. No stall.
And I'm just not sure about the last one.

So you want to use pidgin & for autostarting.

using && is conditional..
the script will only continue if command before was successful..  example:
do_this && do_that    -->  if bash is unable to execute "do_this" then "do_that" is not executed either

Offline

#7 2009-01-29 08:37:49

Foomandoonian
#! CrunchBanger
From: Cardiff, UK
Registered: 2008-12-07
Posts: 227
Website

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

papparonny wrote:

using && is conditional..
the script will only continue if command before was successful..  example:
do_this && do_that    -->  if bash is unable to execute "do_this" then "do_that" is not executed either

Aaah! Thanks papparonny big_smile


foomandoonian's tumblelog & twitter

Offline

#8 2009-01-29 18:44:07

ZeroTruths
#! Junkie
Registered: 2008-12-31
Posts: 331

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

oooh, cool.
I didn't know that smile


All in an effort to learn...
Delves deeper into code...

Offline

#9 2009-01-29 22:46:53

Mich
#! Member
Registered: 2009-01-22
Posts: 97

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

papparonny, thanks for the clarification.:D

Offline

#10 2009-01-30 09:33:33

Nik_Doof
#! Junkie
Registered: 2008-12-13
Posts: 361
Website

Re: [Resolved] Any difference in "pidgin" and "pidgin &" ?

Hence the entries of

(sleep 5 && <command>) &

This code tells a new background instance of bash (the last &) to execute "sleep 5s", if that is successful then run the command.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo