1 |
On Wed, Sep 9, 2009 at 10:58 PM, Willie Wong<wwong@××××××××××××××.edu> wrote: |
2 |
> On Wed, Sep 09, 2009 at 06:11:20PM +0530, Penguin Lover Kaushal Shriyan squawked: |
3 |
>> > file `which autossh` |
4 |
> |
5 |
> What about this command? I want to see if autossh is a wrapper script |
6 |
> so that it has its own environment. |
7 |
> |
8 |
>> $ AUTOSSH_POLL=100 autossh hostxxx |
9 |
>> autossh[16050]: checking for grace period, tries = 0 |
10 |
>> autossh[16050]: starting ssh (count 1) |
11 |
>> autossh[16053]: execing /usr/bin/ssh |
12 |
>> autossh[16050]: ssh child pid is 16053 |
13 |
>> autossh[16050]: check on child 16053 |
14 |
>> autossh[16050]: set alarm for 600 secs |
15 |
>> ^Cautossh[16050]: received signal to exit (2) |
16 |
> |
17 |
> Regardless, you should file a bug. The way it is ignoring the |
18 |
> environmental variable is definitely different from what the man page |
19 |
> says it should do. |
20 |
> |
21 |
> The only things I can think of that gives it such behaviour is either |
22 |
> |
23 |
> (i) The software itself is broken and doesn't respect the variable. |
24 |
> (ii) /usr/bin/autossh is actually a wrapper script so you need to set |
25 |
> the variables in there, instead of in your .bashrc. |
26 |
> |
27 |
> For either case, the behaviour is not consistent with the man page. |
28 |
> |
29 |
> W |
30 |
> -- |
31 |
> M: Hey, do that again! Make the computer beep... |
32 |
> W: As you wish! |
33 |
> M: ah~~ ah~~... hum, that beep was a G. |
34 |
> W: how can you tell? |
35 |
> (turn around) |
36 |
> oh... no fair... a tuner |
37 |
> Sortir en Pantoufles: up 1006 days, 16:16 |
38 |
> |
39 |
> |
40 |
|
41 |
Hi Willie Wong |
42 |
|
43 |
file `which autossh` |
44 |
/usr/bin/autossh: POSIX shell script text executable |
45 |
|
46 |
http://paste.ubuntu.com/268077/ |
47 |
|
48 |
I dont see any of my env variables being called in that bash shell script. |
49 |
|
50 |
Please suggest and guide |
51 |
|
52 |
Thanks for the explanation. |
53 |
|
54 |
Thanks and Regards, |
55 |
|
56 |
Kaushal |