Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Ssh Keys

by talexb (Canon)
on Nov 28, 2005 at 18:53 UTC ( #512323=note: print w/replies, xml ) Need Help??


in reply to Ssh Keys

Umm .. I see three or four system calls, and a single conditional. That's not much Perl; and there isn't even any error checking on the system calls.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^2: Ssh Keys
by j^2 (Novice) on Nov 28, 2005 at 22:24 UTC
    yeah i understand. i just thought i might submit it to perlmonks to get some feed back. i'm really trying to learn perl and wanted to see what more experianced users thought.
      I think the criticism is accurate, but I definitely do a lot of little glue programs that aren't interesting in terms of Perl, but are incredibly useful pragmatically. So, while programs like this aren't that interesting on a Perl-centric site like PM, pragmatic programs are good tools to build. I really enjoy it when someone in my lab asks me how to do something and I say "Aha! I have a script for that. Let me show you."

      Here's one more small criticism: most people make ssh all caps or all lowercase.

      Another thing you might do with your script is verify that permissions are correctly set on the .ssh directory and the authorized_keys file. Maybe add a usage message. Toss it into the Code Catacombs. Or even better, poke around there. I'm sure you're not the first person to do this. It's interesting to see how other people code programs to do the same thing, in terms of style, documentation and cool tricks. Reading the code of others critically is a great way to learn, and is one reason that I love PM.

      Cheers and good luck with your programming.

        Thank you so much, I have a long way to go, but i have to find reasons to program. that's been my main problem, i just cant write a program to do "nothing"

      It's great to jump in and get your feet wet with the language .. my only criticism was that your example didn't contain that much Perl.

      But keep trying things, reading posts and asking questions .. I'm sure you'll learn fast.

      Alex / talexb / Toronto

      "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

        thank you so much. I'm going to start poking around to see if i can find any beginner scripts to help/learn from.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://512323]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-12-08 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?