« first day (1507 days earlier)      last day (3430 days later) » 

12:35 AM
@slm echo? ;P
 
@terdon yeah. search for "chat search is even worse", and then search for "Chat search is even worse"
nevermind. I think they just fixed it...
didn't work last night haha
@FaheemMitha not a lot. finals week coming up. how about you?
 
I swear this is an XY so if later I come cursing, please tell me it was my fault for answering it
 
12:59 AM
I am so happy with Arch.
 
 
4 hours later…
4:36 AM
@strugee Busy with various things, I guess. I hope your tests go well.
 
 
4 hours later…
8:17 AM
@FaheemMitha thanks! me too haha
 
8:30 AM
I am using rsync versuion 3.0.6, I want to know if rsync uses SSH or RSH by default. I tried echo $RSYNC_RSH, but it prints nothing
 
@Tarun ssh.
the man page should say so
"For remote transfers, a modern rsync uses ssh for its communications, but it may have been configured to use a different remote shell by default, such as rsh or remsh."
I suggest try it and see.
What is your distribution?
 
Faheem, The system belongs to organization so i dont know much
I tried to print operating system name and it says "GNU/LINUX"
and kernel version is 2.6.18-371.3.1.el5
Though i am able to connect rsync over ssh, but i want to know currently if they are using rsh or ssh
 
@Tarun ssh by default, unless the client has been configured otherwise
 
@Gilles If i am not wrong then the only way to configure it by setting enviroment variable RSYNC_RSH, right ?
 
@Tarun or the -e option
but practically nobody uses rsh these days
 
8:43 AM
@Gilles Thank you!!
 
9:09 AM
@Tarun Run it without specifying and see what it uses?
@Tarun: Do lsb_release -a.
 
9:31 AM
@FaheemMitha I tried lsb_release, Thanks the OS is "Centos 5.8"
With --rsh=rsh not working but with --rsh==ssh its working fine. So i think rsync is using ssh currently
 
 
2 hours later…
11:45 AM
@Tarun Any reasonably recent Linux distribution would use ssh, I think.
 
 
4 hours later…
3:35 PM
Anyone know how I can use <() in an sh script?
grep -o '^\S*' <(sh diff_current_old_users.sh) is giving me Syntax error: "(" unexpected
Works fine in the normal command line
 
slm
4:15 PM
what's the shell? @Undo
is it dash?
 
@slm I think it is
Yeah, I've determined that before
 
slm
I'm installing it now
 
Somehow sh is dash, but the command line is bash. No idea how that happened :P
 
slm
$ dash
$ diff <(ls) <(ls)
dash: 1: Syntax error: "(" unexpected
$
looks familiar?
 
Yup
 
slm
4:19 PM
8-)
the script have a shebang of /bin/sh or /bin/bash?
 
Neither
But #!/bin/bash doesn't work either
 
slm
only reason I asked is I couldn't tell if the syntax error was coming from the grep's or the sh's
 
$ sh check_for_existing_spammers.sh
check_for_existing_spammers.sh: 3: check_for_existing_spammers.sh: Syntax error: "(" unexpected
 
slm
that's the guy
 
#!/bin/bash

cd /home/ubuntu/SmokeDetector; grep -o '^\S*' <(sh diff_current_old_users.sh) | sort | uniq | while read line; do curl $(echo api.stackexchange.com/2.2/users$(grep -o "http://$line/users/[0-9]*" users.txt | grep -o '[0-9]*' | sed ':a;N;$!ba;s/\n/;/g')'?order=desc&sort=reputation&'"site=$line"'&filter=!40D.p*)Z52NeYBG9p&key=6kA1n8WwnkLExAQBiSeHRA((') 2>/dev/null | gunzip | python parseuserresponse.py; done | while read line; do grep $line users.txt; done | uniq
Kinda ugly :P
 
slm
4:21 PM
what shell script isn't 8-)
 
It's the <(sh diff_current_old_users.sh) that makes it bork, works fine when I take it out
 
slm
you could move it around while read line ....;done < <(grep .....)
 
Ah, I'll try that
 
slm
makes it easier to ready since the while loop is what you're doing and the crap after is what you're looping through
 
@slm Although I only want to check new entries every day, and I'd prefer not to send those through the API
 
slm
4:23 PM
you may be able to get rid of the sh that way too
yeah the choice is up to you, I've used both forms so one isn't better than the other, just gives you different options
 
k, thanks!
 
slm
yup
 
I'll play with it.
 
slm
let me know how you make out
 
 
4 hours later…
slm
8:06 PM
Ah Evan Carroll, always good for a laugh....
 
@slm the worst thing is, if he hadn't promised to publish users' private information, he wouldn't be the worst candidate
 
slm
What is going on on that site?
Then you have Ian saying don't vote for me, or Noob, vote for these guys
I didn't know whether to laugh or cry. I chose to cry with laughter because I realised that Shog9 and the team already know this and as such know that the Noob is likely to get elected.

Oh dear what a mess.

Don't vote for me, vote for Sven, Ward, and HBruijn.
 
 
4 hours later…
11:54 PM
eeek, there are THREE projects called SLURM, two of which are job schedulers
Ah, no, the two job schedulers are in fact the same project
there's an older copy of the documentation that has a high Google rank
 

« first day (1507 days earlier)      last day (3430 days later) »