Jump to content
xisto Community
Sign in to follow this  
tinoymalayil

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

Recommended Posts

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.....

Share this post


Link to post
Share on other sites

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://www.shellscript.sh/ . 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 https://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 ( https://www.autoitscript.com/site/autoit/ ).

Regards,

z.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.