Nov 8, 2009

Difference Of Unix Shell Scripts And Windows Commands - Shell Scripts of Unix and DOS Commands in Windows

free web hosting
Open Discussion > MODERATED AREA > Technology

Difference Of Unix Shell Scripts And Windows Commands - Shell Scripts of Unix and DOS Commands in Windows

tinoymalayil
I tried the shell script in Linux OS several times..But I think some of the script have some similarities with Windows DOS Commands.But what is actually happening inside a Shell Script..Why most of the people says that Linux or Unix Environment is more Secure..

How can I Study the Shell Script effectively..
Can anyone suggest any tutorial to study Shell Script better.....

Comment/Reply (w/o sign-up)

zakaluka
Think of shell scripting as a full programming language that allows you to write "software" using regularly available linux commands. So, a shell script, either on linux or on windows (yes, windows also has shell scripts), will contain commands.

If you want to learn more about shell scripting, take a look at http://www.freeos.com/guides/lsst/ and http://steve-parker.org/sh/sh.shtml . Also, reading the info / man page for bash (I would call it the most popular linux shell environment for desktop computers) will give you all the information you need to create shell scripts.

If you are interested in using shell scripts on windows, look at http://msdn.microsoft.com/en-us/library/ms950396.aspx . Windows provides JScript and VBScript for use on its systems. However, there are better alternatives available, like Auto It ( http://www.autoitscript.com/autoit3/index.shtml ).

Regards,

z.

 

 

 


Comment/Reply (w/o sign-up)

tinoymalayil
Thank You 4 Ur Suggestion and Reply.

Is Shell Script is Similar to Javascript and VBScript..
Can we use this shell script in html pages.?

Comment/Reply (w/o sign-up)

random truth
QUOTE (tinoymalayil @ Apr 22 2009, 02:45 AM) *
Thank You 4 Ur Suggestion and Reply.

Is Shell Script is Similar to Javascript and VBScript..
Can we use this shell script in html pages.?

No you can not use shell scripting in html page. Shell script serves a different purpose than javascript and VBScript.
Shell script is used to run a series of commands in a UNIX shell. Or in windows a command prompt (The commands are different so I dont really call this shell scripting). Shell Scripting is to make rudimentary or repetitive tasks faster and more automated. It is often used for install scripts, or maintenance scripts.

Comment/Reply (w/o sign-up)

zakaluka
QUOTE (tinoymalayil @ Apr 22 2009, 02:45 AM) *
Thank You 4 Ur Suggestion and Reply.

Is Shell Script is Similar to Javascript and VBScript..
Can we use this shell script in html pages.?


As random truth mentioned, shell scripts are NOT the same as web scripts. JScript is NOT javascript. Shell scripts are written to be executed on the command-line interpreter. On windows, this is the command prompt. On linux, this is the terminal running a variant of 'sh' (like bash).

Web scripts, on the other hand, are designed to add more functionality to static HTML pages.

I'm going to add some confusion to the mix: certain languages can be used to write both shell scripts and web scripts. Take Perl, for example. In this case, you could write a "shell script" that runs using the perl executable on your local system. You can also write a Perl script that will run on a web server. However, their purpose is totally different.

Regards,

z.

Comment/Reply (w/o sign-up)

k_nitin_r
QUOTE (tinoymalayil @ Apr 22 2009, 01:42 AM) *
I tried the shell script in Linux OS several times..But I think some of the script have some similarities with Windows DOS Commands.But what is actually happening inside a Shell Script..Why most of the people says that Linux or Unix Environment is more Secure..

How can I Study the Shell Script effectively..
Can anyone suggest any tutorial to study Shell Script better.....



Hi!

The similarity that you see is between Linux shell scripts and DOS batch files - both are essentially command-line statement put into a file (they are actually more than just a series of statements, but at a very basic level, that's what they are!).

A Linux shell script consists of the location of an interpreter (usually the "bash" script) at the top of the file, indicated by the "#!", followed by statements that can be executed. If you've never written shell scripts before, here's an article on writing your first shell script: http://www.freeos.com/guides/lsst/ch02sec01.html

Do post back if you're looking for more.

Regards,
Nitin

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords :

  1. Windows 7 Now With Multitouch Features
    (0)
  2. Windows Xp
    Removed (11)
    I read yesterday that Microsoft will remove Windows XP from store shelves in June 2008, and, will
    discontinue support for older versions all together. I like Xp over Vista , I tested both myself,
    Vista uses too many resources, I even have 4 Gig of RAM and I could tell it was still "Laggy and
    slow" compared to XP or 2000 for that matters. What is your opinion? This website keeps up on
    technology news ... http://www.dslreports.com ....
  3. Protect Public Computers With Windows Steadystate
    (1)
    QUOTE This article series will focus on “Windows SteadyState” – a completely free toolkit from
    Microsoft that helps administrators take control of shared access computers running Windows XP. This
    article series will include a short introduction to the possibilities we get with Windows
    SteadyState (WSS). We will look at the new version compared to older versions, system requirements,
    Windows Disk Protection (WDP). If you have ever managed shared access computers, like computers in
    schools, public libraries, Internet cafes, kiosk machines, etc, you probably know how h....
  4. Xubutnu In Windows
    (2)
    Just finished installing Xubutnu 6.06 Dapper Drake in Microsoft Virtual PC 2007., so I can have a
    linux Web Server. Xubuntu runs pretty well with 512mb ram out of my 1.5Gb and a 2.6Ghz Celeron.
    Took about 1.5hours to install and 2gb ish hard drive space. Pretty simple to do, download Dapper
    Drake ISO from the Xubuntu website and Virtual PC from Microsoft. Install virtual PC. Create a
    virual Pc, I recommend no less that 256mb ram allocated, create a virual hard drive ( about 5Gb, 2Gb
    minimum) click start CD at the top mount the dapper drake image press F4 i think it....
  5. How To Change Windows Xp Language ?
    (52)
    my mate bought me a laptop from Paris .... now the problem is i dont know how can i get windows in
    an english version... currently its french. I have tried all the possible ways... its not even
    letting me boot from my own cd. Any help would be great....
  6. Ten Windows Password Myths
    I was surprised by a few of these myself (7)
    Even today passwords play a central role in system security. Here are ten myths of passwords with
    using Windows: QUOTE Myth #1: My Password Hashes Are Safe When Using NTLMv2 QUOTE Many
    readers will be familiar with the weaknesses in LanManager (LM) password hashes that made L0phtcrack
    so popular. NTLM made hashes somewhat stronger by using a longer hash and allowing both upper and
    lower-case letters. NTLMv2 made even more advances by computing a 128-bit key space and using
    separate keys for message integrity and confidentiality. It also uses the HMAC-MD5 alg....
  7. Windows Vista Beta Available?
    There is one going around (60)
    I have heard and that there is a Windows Vista Beta version going around. I have been to a torrent
    site and found few there. But I’m not going to download it because i'm guessing it is illegal.
    Do any of you here have Windows Vista Beta? If you do what are the system requirements for it to
    run. And i have heard there are few versions of this beta, one without the graphical 3D software
    (decreasing system requirements), and one with it. Is this true?....
  8. Windows Vista Tranformation Pack
    Make you computer look like Vista (82)
    Ok, some people here have probabely been trying to make their computer look like Windows Vista. I
    have to, i found themes and so on but nothing i like they were all crusty, i searched and searched.
    And found one, The Vista Transformation Pack 4.0 (They will probabely make new versions of it).
    http://www.softpedia.com/get/System/OS-Enh...tion-Pack.shtml It contains everything # Icons #
    Themes # Visual Themes # Bootscreen # Login Screen # Sounds # Transparency # Start Menu Changes
    (WIth Vista Button inseat of start) --Thats all i can think of but there probabely more.....
  9. Windows Lingo
    Useful for those new to the terminology (6)
    I found this reading a few articles on yahoo figured id share this: This is a good simple
    refference for begginners. getting into PC's: Some terms pop up so frequently that you'll
    find it worthwhile to memorize them, or at least understand where they come from. That way, you
    won't be caught flatfooted when your first-grader comes home and asks whether he can download a
    program from the Internet. If you really want to drive your techie friends nuts, the next time you
    have a problem with your computer, tell them that the hassles occur when you're "runni....
  10. Windows Vista: The Next Os?
    Will it be? (34)
    I have several new writing jobs, one is volunteer for a site called Mechie Tehcie, which is suppose
    to be the next top competitor in technological news. If the mods don't mind, I will be posting
    my articles here. These articles are written by me and can only be used with a link back to Mechie
    Techie, which is where I originally posted them, which is below and is included in the article. So
    anyway, I will be writing three technological articles per week, and will post maybe two here each
    week. If it is okay. QUOTE Good bye Windows XP and hello Windows Vist....
  11. Steve Jobs Bets For Windows Xp On Apple Hardware
    It is the end of the Tiger and similar Mac OSes?, No, just business... (3)
    You knew it was coming and its now true. Apple will soon offer Windows XP support on Macintosh
    systems, a strategy designed to attract new converts. The option, called Boot Camp, is currently in
    beta form, and allows Windows XP to run on Intel-powered Macs. "Apple has no desire or plan to sell
    or support Windows, but many customers have expressed their interest to run Windows on Apple's
    superior hardware, now that we use Intel processors," said Philip Schiller, Apple's senior vice
    president of worldwide product marketing. " We think Boot Camp makes the Mac even....
  12. Is There An Adium-like Im Client For Windows?
    (26)
    Recently I've been getting sick of connecting to so many accounts on so many different clients.
    It's troublesome to maintain so many accounts/programs. I liked using Trillian for a while but
    it took too much processor memory and it can't connect to Skype or Googletalk (which I
    haven't downloaded, but will do so when I find a suitable Adiumlike program). Does anyone know
    of an IM client which supports all the major IM protocols? That would be MSN, Yahoo, AIM,
    Jabber/Google (well, Skype too but I guess it's optional). I've looked around the plac....
  13. Virtual Pc
    Windows emulator for Mac. (15)
    I heard that VPC was extremely slow and was very bugged. It requires a VPC CD/CD KEY. I suggest
    using Guest PC, which you can find free, but all you need is a real Windows CD, not an ISO or burned
    CD. Guest PC is also said to be less bugged.....
  14. Mice With Only One Botton At Apple, Finished.
    Compatibility with: MacOS X & windows. (20)
    - I am going to tempt to wake up the memory of oldest among you. You remember
    the exit of the first Macintosh, at Apple . How could you have forgotten this funny mouse,
    "innovante" for the time, dressed of only one thick button on its superior part, who produced a
    small particular click (whose sound reasons again in my ears)? This revolution
    that Apple had introduced in the world of the data processing has the house was going to become the
    contraption of your daily, and to arrange itself as a matter of course to quote them of th....
  15. Using Autoexec With Windows Xp Professional?
    (14)
    How can I get stuff to automatically happen with XP Pro? I tried putting stuff in AUTOEXEC.BAT, but
    it didn't happen. Is there some environment variable that I can edit or something I have to
    change to get AUTOEXEC to work, or is there another file that would have the same effect? Also, is
    there something like that for shutting the computer down--that will automatically do/stop stuff on
    shutdown?....
  16. Windows Nt Therapy Institute
    (2)
    /laugh.gif' border='0' style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> /laugh.gif' border='0' style='vertical-alig....
  17. Microsoft Windows Bill Gates Edition?
    (112)
    i heard that some peaple have microsoft windows bill gates edition and it is used by bill
    gates(creator of microsoft), they said they cracked it from bill gates computer is this true?
    /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> because my freind was going to
    give it to me and i thought it might have viruses or somethin init. it might just be a program that
    some hackers made so microsoft is available to users or it might just be bill gates edition
    microsoft. what is your opinion? /huh.gif' border='0' style='vertical-align:middle' alt='huh.gif....
  18. Windows 2000
    blah (9)
    Well if you haven't already heard here is the news brief, Windows 2000 server and personal
    editions will no longer have support given to them as of June 30, 2005 and therefore no more
    critical and or recommend updates. I knew the day would come when they would stop the support and
    basically force everyone who wanted to remain updated with the latest security fixes and what not
    would have to upgrade to windows XP home, professional, and or corporate. Therefore, making it so
    that people have to buy the upgrade or full install and most people can't afford the pri....
  19. Windows
    (12)
    here is the pictures of windows from 1.o to longhorn,
    http://news.wenxuecity.com/BBSView.php?Sub...ews&MsgID=23007 only this site is in chinese, but the
    pictures themselves should be clear enough.....
  20. Windows 2003
    (5)
    i was wondering who all here uses or knows information about windows 2003? i read in the unix vs
    linux post of someone who used win2k3 rather than a linux distro. i am wondering what's good in
    it other than the jsp/asp servlet running builtin? i am using windows xp pro....
  21. Windows Long Horn?
    dunno...its wut i hear (58)
    new windows version comes out 2006? its called windows version long horn? i dunno.... do u know
    something about this?....
  22. Windows Xp Update Starts To Weed Out Pirate Keys
    Look out! (26)
    MICROSOFT HAS started implementing features in upgrades to Windows XP which specifically prevent
    users of pirated keys from upgrading parts of the operating system. Microsoft said its Genuine
    Advantage scheme would prevent pirated copies of XP from downloading anything but the most critical
    downloads. Owners of pirated keys in Western Europe tell the INQUIRER that scheme has now kicked in.
    What this means, for example, is that if you upgrade the Media Player to version 10, and you're
    using a pirated copy of XP, you'll lose functionality on your machine. Microsof....
  23. Linux Or Unix
    Witch one is your fav!!! (27)
    Id say linux i think its more stable that Unix but not sure i love LINUX....

    1. Looking for Difference, Of, Unix, Shell, Scripts, And, Windows, Commands

Searching Video's for Difference, Of, Unix, Shell, Scripts, And, Windows, Commands
See Also,
advertisement


Difference Of Unix Shell Scripts And Windows Commands - Shell Scripts of Unix and DOS Commands in Windows

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com