00:17.33 | *** join/#gllug nixofortune_ (n=egor@87.127.26.43) |
01:59.10 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
02:35.19 | *** join/#gllug Leeds (n=richardc@static-ip-251-82-134-202.rev.dyxnet.com) |
03:26.11 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
05:11.47 | *** join/#gllug j0nr (n=j0nr@95.154.208.54) |
05:37.55 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
06:10.37 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
06:16.53 | *** join/#gllug sabinef72 (n=sabinef7@ns.popipo.fr) |
06:56.34 | *** join/#gllug j0nr (n=j0nr@95.154.208.54) |
07:05.05 | *** join/#gllug j0nr (n=j0nr@95.154.208.54) |
07:06.22 | *** join/#gllug flips_and_rails (n=stu@cv-kraken.cv.ic.ac.uk) |
07:46.18 | *** join/#gllug zeroXten (n=zeroXten@80.83.157.42) |
07:46.18 | j0nr | good mornings all |
08:31.50 | z00dax | morning |
08:33.35 | Mohan | morning |
08:35.15 | bilarh | morn |
08:44.14 | zeroXten | morning |
11:12.07 | Mohan | While loop exits after reading the first entry in the file, when an ssh session is started with grouped commands {}; inside the loop. |
11:12.55 | Mohan | if i disable the ssh command the loop works fine. |
11:17.04 | Mohan | eg: ssh -l user host "{ command1; command2; command3; };" |
11:17.27 | Mohan | it works fine inside for loop, is there a reason for it ? |
11:22.36 | Mohan | http://fpaste.org/paste/12269 |
11:29.42 | antiphase | You're using a screwdriver to hammer in a nail |
11:37.24 | *** join/#gllug j0nr (n=j0nr@95.154.208.54) |
11:53.07 | Mohan | antiphase: it does the job, but if you know a better method to run a set of commands in a series of hosts please let me know. |
11:53.12 | *** join/#gllug dick_turpin (n=dick_tur@host217-34-163-30.in-addr.btopenworld.com) |
11:53.26 | bilarh | oh no he's back |
11:54.57 | Mohan | redirecting the ssh output to /dev/null seems to fix the issue. |
11:55.18 | antiphase | Don't use curly brackets is also an answer |
11:55.44 | antiphase | ssh -l root2 'echo "date"; date' works fine |
11:55.58 | antiphase | Oops, was that your sekrit roo username flashing there |
11:59.26 | Mohan | yup, but thats only on local backup machine |
12:02.31 | *** join/#gllug celesteh (n=celesteh@sblug/member/celesteh) |
12:06.08 | Mohan | you need curlybraces if you want to call $VAR1 $VAR2 etc.. with the ssh command. |
12:07.57 | Mohan | for ex: create a set of users with different homedir and diff shell, from a listfile, |
12:20.19 | antiphase | Or just assemble the commands locally first |
12:20.47 | antiphase | If you're running multiple remote commands without error handling you'll potentially have nasty problems anyway |
12:27.42 | Mohan | bash -xv ssh "{ command $var1; $command $var2; echo "status $?"; sleep 5; command $var3; echo "status $?"; sleep 5; command $var4; };" |
12:28.12 | Mohan | i always check exit status for critical command followed by a sleep command, |
12:29.23 | antiphase | I hope I never inherit any of your cruft ;) |
12:33.44 | *** join/#gllug j0nr (n=j0nr@95.154.208.54) |
12:45.05 | j0nr | hi all, how od i set up a rule in shorewall to allow me to connect to a server on a non standard port for SSH |
12:45.51 | j0nr | I have tried ACCEPT net loc:ip.addy.of.server tcp <port> |
12:45.58 | j0nr | but got an error about zones... |
12:46.02 | j0nr | so added a zone called net |
12:46.05 | j0nr | sorry loc |
12:46.08 | j0nr | still no go |
12:46.27 | j0nr | shorewall does start but i cant ssh in on the non std port |
12:51.45 | antiphase | Doesn't it log? |
12:55.14 | j0nr | not sure ..first time using shorewall |
13:10.19 | antiphase | One would hate to say "RTFM", but I think you should RTFM :P |
13:11.29 | bilarh | antiphase: "one would hate to say RTFM" - pah. Be honest, that's what you live for ;) |
13:12.17 | antiphase | It can be a rewarding experience at time, I admit |
13:12.57 | z00dax | its most rewarding when talking about code that has no docs |
13:13.07 | z00dax | the sorts where 'the source is the docs' |
14:02.48 | *** join/#gllug Leeds (n=richardc@n219079213112.netvigator.com) |
14:39.20 | *** join/#gllug Armand|FFS (n=me@92-234-67-11.cable.ubr14.haye.blueyonder.co.uk) |
14:44.22 | *** part/#gllug dick_turpin (n=dick_tur@host217-34-163-30.in-addr.btopenworld.com) |
17:16.44 | *** join/#gllug countd (n=countd_@unaffiliated/countd) |
19:57.57 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
20:54.46 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
22:09.17 | *** join/#gllug an0key (n=luke@82-34-223-29.cable.ubr01.sout.blueyonder.co.uk) |
22:09.20 | *** part/#gllug an0key (n=luke@82-34-223-29.cable.ubr01.sout.blueyonder.co.uk) |
23:24.53 | *** join/#gllug DiscordianUK (n=ch@chills.demon.co.uk) |
23:30.00 | *** join/#gllug stetho (n=stetho@host81-129-142-76.range81-129.btcentralplus.com) |
23:47.24 | *** join/#gllug eye69 (n=magnus@yoshi.upcore.net) |