VBS on Linux

Author Message
Fredledingue

  • Total Posts : 572
  • Scores: 2
  • Reward points : 0
  • Joined: 5/9/2005
  • Location: Europe
  • Status: offline
VBS on Linux Thursday, June 07, 2007 10:28 AM (permalink)
0
Questions:
 
-Does Linux offer a similar concept of notepad based script hosting?
 
-Is there a Linux based language similar and  easy to translate fom VBS?
 
-What would you do if you had to migrate fom Windows to Linux and keep using all your scripts?
 
Note:
According to JSWare, VBS, via Windows Script Host  works fine on Wine but I guess there must be a similar scripting language for Linux.
Fred
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    RE: VBS on Linux Friday, June 08, 2007 3:07 AM (permalink)
    0
    The scripting environment in Linux is actually much richer than on windows. You cannot use VBScript, but there are a lot of other languages that to a certain extent are better imo than VBScript. Just to list a few (and all of these can be used on windows as well with more or less effort depending on the language):
     
    Awk
    Bash
    Perl
    Python
    PHP
    Lisp
    sed
     
    That list just barely scratches the surface. If you really want to use VBScript on a linux machine, you may be able to via WINE, but I have never tried.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      Fredledingue

      • Total Posts : 572
      • Scores: 2
      • Reward points : 0
      • Joined: 5/9/2005
      • Location: Europe
      • Status: offline
      RE: VBS on Linux Tuesday, June 12, 2007 10:36 AM (permalink)
      0
      Any native linux script la,guage that looks like VBS? 
      Fred
       
      #3
        ebgreen

        • Total Posts : 8227
        • Scores: 98
        • Reward points : 0
        • Joined: 7/12/2005
        • Status: offline
        RE: VBS on Linux Wednesday, June 13, 2007 2:34 AM (permalink)
        0
        Not really.
        "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
        Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
        http://www.visualbasicscript.com/m_47117/tm.htm
         
        #4
          TNO

          • Total Posts : 2094
          • Scores: 36
          • Reward points : 0
          • Joined: 12/18/2004
          • Location: Earth
          • Status: offline
          RE: VBS on Linux Thursday, June 28, 2007 7:07 AM (permalink)
          0
          <.<

          >.>

          .........
          Javascript

          And I say that not just because I'm a known fanboy, but because it has always been easier for me mentally to just change up a few object references and go on my way depending on the environment (Web Browser, client side script, .NET environment, ASP pages, etc.). Not to mention you get a ton and a half of easy to digest refrences and samples on the internet. Plus the updated scripting reference from MSDN shows alot of the VBScript and JScript equivalents side by side
          <message edited by TNO on Thursday, June 28, 2007 7:19 AM>
          To iterate is human, to recurse divine. -- L. Peter Deutsch
           
          #5
            ebgreen

            • Total Posts : 8227
            • Scores: 98
            • Reward points : 0
            • Joined: 7/12/2005
            • Status: offline
            RE: VBS on Linux Thursday, June 28, 2007 8:37 AM (permalink)
            0
            I agree with most of your points, but in interest of truth in advertising I think everyone should be made aware that JScript <> JavaScript.
            "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
            Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
            http://www.visualbasicscript.com/m_47117/tm.htm
             
            #6
              TNO

              • Total Posts : 2094
              • Scores: 36
              • Reward points : 0
              • Joined: 12/18/2004
              • Location: Earth
              • Status: offline
              RE: VBS on Linux Thursday, June 28, 2007 10:45 AM (permalink)
              0
              Very true. JavaScript comes in a variety of "flavors" The differences are small, but could get you to into trouble if you don't pay attention to them. But hands down, if you can find the same function or feature on W3schools, Mozilla, and in the WSH documentation you're safe. But even this minor roadblocks aren't an issue with the language's natural prototype inheritence. You can prototype the missing functions to fit your specific environment if it becomes necessary. But in all I personally think learning JS is alot easier than learning PHP or PERL.
               
              The basic types of JavaScript:
               
              The Standard ECMAScript
              Mozilla's JavaScript (very close to the current standards)
              Microsoft's JScript (found in the WSH documentation)
              JScript.NET (basically the same as the WSH documentation plus a few things extra thrown in which are optional)
              ActionScript (Used in Flash programs, but you most likely arent going to have to worry about this)
              and a variety of smaller deviations that follow the basics of the ECMA standard.
              <message edited by TNO on Thursday, June 28, 2007 10:49 AM>
              To iterate is human, to recurse divine. -- L. Peter Deutsch
               
              #7
                ebgreen

                • Total Posts : 8227
                • Scores: 98
                • Reward points : 0
                • Joined: 7/12/2005
                • Status: offline
                RE: VBS on Linux Friday, June 29, 2007 2:26 AM (permalink)
                0
                If you are just starting out and learning from scratch I don't think JavaScript is any easier than Perl or PHP, but that is purely personal opinion. I always tell people that their very first language should be Python anyway.
                "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                http://www.visualbasicscript.com/m_47117/tm.htm
                 
                #8
                  Fredledingue

                  • Total Posts : 572
                  • Scores: 2
                  • Reward points : 0
                  • Joined: 5/9/2005
                  • Location: Europe
                  • Status: offline
                  RE: VBS on Linux Friday, July 20, 2007 11:18 AM (permalink)
                  0
                  Ok, Java or JS (whatever you prefer to call it) is a no go to me. Too complicated.
                  So I guess I'm stuck here.
                   
                  Fred
                   
                  #9
                    TNO

                    • Total Posts : 2094
                    • Scores: 36
                    • Reward points : 0
                    • Joined: 12/18/2004
                    • Location: Earth
                    • Status: offline
                    RE: VBS on Linux Monday, July 23, 2007 1:57 AM (permalink)
                    0

                    Java and JS 2 different things as well
                     
                    Personally if I HAD to use vbscript for a Linux platform I would probably use some sort of trusted ASP page to remotely do everything. If I find a sample of someone doing this or something better I'll let you know.
                    To iterate is human, to recurse divine. -- L. Peter Deutsch
                     
                    #10
                      mcds99

                      • Total Posts : 519
                      • Scores: 4
                      • Reward points : 0
                      • Joined: 2/28/2006
                      • Status: offline
                      RE: VBS on Linux Tuesday, July 24, 2007 8:58 AM (permalink)
                      0
                      I had to look ;-)

                      http://hbasic.sourceforge.net/

                      It's "Basic" not vbscript.
                      Sam

                      Keep it Simple Make it Fun KiSMiF
                       
                      #11
                        daluu

                        • Total Posts : 53
                        • Scores: 0
                        • Reward points : 0
                        • Joined: 4/17/2006
                        • Status: offline
                        RE: VBS on Linux Thursday, July 26, 2007 11:11 AM (permalink)
                        0
                        How about Mono platform for .NET languages? C# or VB.NET? It's a lot like VBScript in that its easy to use. VB.NET would be best if it is supported in Mono, but I'm not sure.
                         
                        #12
                          Parabellum

                          • Total Posts : 233
                          • Scores: 0
                          • Reward points : 0
                          • Joined: 11/12/2006
                          • Location: UK
                          • Status: offline
                          RE: VBS on Linux Thursday, August 23, 2007 6:37 AM (permalink)
                          0
                          Its not to difficult to move between sciprting languages if you understand the basics of programming..
                          variables, arrays, loops, functions etc..
                           
                          I am constantly switching between vbscript, PHP, Perl and Javascript... but i would say if you want to script on linux.. stick with perl... its easy to follow, and will do anything any other scripting language will do.
                          If you want to develop applications you will need to go for higher level such as c/c++ or Java and if you want to develop web apps or web pages... go for PHP and Javascript..
                           
                          #13
                            Rischip

                            • Total Posts : 519
                            • Scores: 2
                            • Reward points : 0
                            • Joined: 3/26/2007
                            • Status: offline
                            RE: VBS on Linux Thursday, August 23, 2007 11:29 AM (permalink)
                            0
                            I believe only C# is supported on mono.
                             
                            #14

                              Online Bookmarks Sharing: Share/Bookmark

                              Jump to:

                              Current active users

                              There are 0 members and 1 guests.

                              Icon Legend and Permission

                              • New Messages
                              • No New Messages
                              • Hot Topic w/ New Messages
                              • Hot Topic w/o New Messages
                              • Locked w/ New Messages
                              • Locked w/o New Messages
                              • Read Message
                              • Post New Thread
                              • Reply to message
                              • Post New Poll
                              • Submit Vote
                              • Post reward post
                              • Delete my own posts
                              • Delete my own threads
                              • Rate post

                              2000-2012 ASPPlayground.NET Forum Version 3.9