Thread: Help - system(telnet) on WinXP (ssh too)

  1. #16
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Mikey View Post
    I should point out again that I am not a 'programmer' per se...my goal is to get 500 devices configured, not build the roads so UPS can get them to their destination When netcat is suggested it just puts me further behind as I try to download it, recfg my antivirus so it won't boot it off (may not be possible) and then I need to learn expect too...
    When you referred to "C/PERL/EXPECT" I assumed that meant you could use expect.

    But you make it sound like you don't actually have any experience of any one of them. So out of the three, you are choosing C of all things?

  2. #17
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,662
    I'm beginning to think that Mikey has 'chosen' C already, and is looking for validation for that decision. Certainly, any attempt to suggest any of the alternatives is met with back peddling.

    C might be giving you the most progress on day 1, but it is far from the ideal choice for the whole project.

    None of your "problem" needs any of the capabilities of C (the low level kind of stuff), it's all string bashing of one sort or another or managing running various external programs. This puts you into expect or perl territory.

    Unless you're seriously considering that this will only take 'a few days', then some time to at least more thoroughly research alternatives (more than a few hours) could be time well spent.
    You did say 'months' in an earlier post.

    Try as a trivial exercise - should take no more than a day for all 4.
    Take the output of "ls" and find all the "file.c" files. Do a "wc -l file.c" on each one of them, then "gcc -c file.c" on the one with the most lines.
    Try it in
    - C
    - perl
    - bash
    - expect

    > I should point out again that I am not a 'programmer' per se
    Then you really ought to give this more consideration then
    "It would be more likely for me to get a PO approved for someone to write what I need than spend months doing it."
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #18
    Registered User
    Join Date
    Apr 2007
    Posts
    13

    rather C than ?

    What I like about C is that it is -clear- ... you do something and you know what it going on. With PERL, who knows, does anyone know what the perl interpreter was written in, or, I tried to download perl but what I got was expect and tcl and who knows what else. Seems to me perl if for those that can't or don't want to C.

    I suppose if I knew perl and C perl would be easier than C. I also think assy is easier than both as I -know- what is going on !

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ssh daemon question
    By Overworked_PhD in forum Linux Programming
    Replies: 4
    Last Post: 07-07-2009, 11:44 AM
  2. Opening a telnet or SSH connection
    By ac251404 in forum C++ Programming
    Replies: 2
    Last Post: 04-11-2007, 09:17 AM
  3. SSH tunnel
    By kastrup_carioca in forum C Programming
    Replies: 10
    Last Post: 01-18-2006, 04:29 PM
  4. Dialog opens properly in winxp, but Freezes in win98se
    By hanhao in forum C++ Programming
    Replies: 4
    Last Post: 07-10-2005, 04:46 AM
  5. problem: online on winxp and linux red hat
    By gemini_shooter in forum Linux Programming
    Replies: 5
    Last Post: 05-29-2005, 02:14 PM