#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0

    Ruby Script: RedHat->XP?


    Hello,

    I have a Ruby script that was developed on Linux (RH 3), will I have a problem running this script on XP?

    Thanks!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0
    Nevermind...it runs beutifully. Which leads me to another question...Is Ruby platform independent?

    Originally Posted by pbatt
    Hello,

    I have a Ruby script that was developed on Linux (RH 3), will I have a problem running this script on XP?

    Thanks!
  4. #3
  5. Kage Bunshin
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2005
    Location
    The Seven Seas Of Rhye
    Posts
    930
    Rep Power
    423
    Welcom to devshed. =D Now, there is an edit button. Please use it. Also, don't quotes yourself, especially in a case such as this where there were only two posts. I don't think so, but I'm not sure. (not a ruby programmer)
    "Java makes impossible things possible, but makes easy things difficult." - Somebody
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    461
    Rep Power
    25
    Hello, welcome to the forums. Yes Ruby is quite platform and os intendant. It is a fairly high level language so there is not much need for a lot of hardware or os specific coding. For just about any general app, including ones that have pretty GUI or preform things with sockets or even threading, it will cross platform perfectly.

    The only cases that it wont cross of as easily is if you are using things in Linux like the `echo "hey"` in ruby script. That would receive an error within windows because windows does not have a echo command. So as long as your coding style doesn't relie on anything about the host os then you are in the clear for portablity. I have even read that ruby could almost be compiled for just about any platform as long as it has a c compiler or a java one.

IMN logo majestic logo threadwatch logo seochat tools logo