Loading...


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

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

 
 Discussion by tinoymalayil with 5 Replies.
 Last Update: May 7, 2009, 8:13 am
 
bookmark - Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows  
Quickly Post to Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows w/o signup Share Info about Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows using Facebook, Twitter etc. email your friend about Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

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









   Tue Apr 21, 2009    Reply         

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.

   Tue Apr 21, 2009    Reply         

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

   Tue Apr 21, 2009    Reply         


QUOTE (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.?
Link: view Post: 441451

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.

   Tue Apr 21, 2009    Reply         

QUOTE (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.?
Link: view Post: 441451


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.

   Thu Apr 23, 2009    Reply         

QUOTE (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.....
Link: view Post: 441435



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

   Thu May 7, 2009    Reply         


Quickly Post to Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows w/o signup Share Info about Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows using Facebook, Twitter etc. email your friend about Difference Of Unix Shell Scripts And Windows Commands Shell Scripts of Unix and DOS Commands in Windows Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Python Does This Snake Lives On Qu...

Hi, Recently we have discussed among ourselves whether it's possible to run our bot on Qupis servers. Bot: Is a piece of program written usually in Python which uses telnet to connect to Free Internet Chess Server (FICS) and announces tournaments, saves results, ...more

   13-Oct-2008    Reply         

Switching From 39 qwerty 39 To ...

Dvorak has proved double as fast as qwerty layout of keyboard because of its key placing. QUOTEDevorack is much more easier to learn then qwerty because it is much more comfortable . The Dvorak keymap is carefully adapted to the English language. For example, most typing in Dvorak takes plac ...more

   17-Jul-2009    Reply         

Making A Simple Unix Shell?

Can anybody help me making a simple unix shell? Using fork() and execlp commands in linux ...more

   19-Dec-2009    Reply         

How To Safely Open Usb Drive Without Affecting Viruses Secure acess of USB Drive   How To Safely Open Usb Drive Without Affecting Viruses Secure acess of USB Drive (24) (9) Why The Installation Of A New Application Is Difficult In Linux   Why The Installation Of A New Application Is Difficult In Linux