IRC log for #gllug on 20090519

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.18j0nrgood mornings all
08:31.50z00daxmorning
08:33.35Mohanmorning
08:35.15bilarhmorn
08:44.14zeroXtenmorning
11:12.07MohanWhile loop exits after reading the first entry in the file, when an ssh session is started with grouped commands {}; inside the loop.
11:12.55Mohanif i disable the ssh command the loop works fine.
11:17.04Mohaneg: ssh -l user host "{ command1; command2; command3; };"
11:17.27Mohanit works fine inside for loop, is there a reason for it ?
11:22.36Mohanhttp://fpaste.org/paste/12269
11:29.42antiphaseYou're using a screwdriver to hammer in a nail
11:37.24*** join/#gllug j0nr (n=j0nr@95.154.208.54)
11:53.07Mohanantiphase: 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.26bilarhoh no he's back
11:54.57Mohanredirecting the ssh output to /dev/null seems to fix the issue.
11:55.18antiphaseDon't use curly brackets is also an answer
11:55.44antiphasessh -l root2 'echo "date"; date'  works fine
11:55.58antiphaseOops, was that your sekrit roo username flashing there
11:59.26Mohanyup, but thats only on local backup machine
12:02.31*** join/#gllug celesteh (n=celesteh@sblug/member/celesteh)
12:06.08Mohanyou need curlybraces if you want to call $VAR1 $VAR2  etc.. with the ssh command.
12:07.57Mohanfor ex: create a set of users with different homedir and diff shell, from a listfile,
12:20.19antiphaseOr just assemble the commands locally first
12:20.47antiphaseIf you're running multiple remote commands without error handling you'll potentially have nasty problems anyway
12:27.42Mohanbash -xv ssh "{ command $var1; $command $var2; echo "status $?"; sleep 5; command $var3; echo "status $?"; sleep 5; command $var4; };"
12:28.12Mohani always check exit status for critical command followed by a sleep command,
12:29.23antiphaseI hope I never inherit any of your cruft ;)
12:33.44*** join/#gllug j0nr (n=j0nr@95.154.208.54)
12:45.05j0nrhi 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.51j0nrI have tried ACCEPT net loc:ip.addy.of.server   tcp   <port>
12:45.58j0nrbut got an error about zones...
12:46.02j0nrso added a zone called net
12:46.05j0nrsorry loc
12:46.08j0nrstill no go
12:46.27j0nrshorewall does start but i cant ssh in on the non std port
12:51.45antiphaseDoesn't it log?
12:55.14j0nrnot sure ..first time using shorewall
13:10.19antiphaseOne would hate to say "RTFM", but I think you should RTFM :P
13:11.29bilarhantiphase: "one would hate to say RTFM" - pah. Be honest, that's what you live for ;)
13:12.17antiphaseIt can be a rewarding experience at time, I admit
13:12.57z00daxits most rewarding when talking about code that has no docs
13:13.07z00daxthe 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)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.