?

Log in

No account? Create an account
Hello, I need to do a few bash/gawk scripts to have some basic… - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Nov. 2nd, 2006|07:27 am]
LiveJournal Client Discussions

lj_clients

[mikhailian]
Hello, I need to do a few bash/gawk scripts to have some basic automation for day-to-day tasks. Some of them require a login.

Is there a way to have a simple authentication, without having to mimic the behavior of the browser?
linkReply

Comments:
[User Picture]From: tymofiy
2006-11-02 04:29 pm (UTC)

Re: Python one

well, did you expect

import LJ
LJ.get_my_last_post_automagically_guessing password() ?

joking. My point was not to say "you're dumb, cause you do not use ..." but a hint that bash is not the best tool for the task. Because in my experience everyone who knows shell scripting knows at least one language of the mentioned triad.
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2006-11-02 04:46 pm (UTC)

Re: Python one

Well, in some languages (*ahem* ruby, perl.. where there are LJ libraries) you can do that... sorta ;)

I apologize, your previous comment read (to me) like the "you're dumb" option and I jumped to conclusions. Sorry about that.

I know quite a few people who can scrape by in bash but don't know other languages, so while I agree with you that it would be easier elsewhere, it's interesting to see what people can do in *sh.
(Reply) (Parent) (Thread)