Shell script in windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Shell script in windows
# 1  
Old 05-18-2009
Shell script in windows

I use windows and I wanted to know how I can use shell script in windows. I saw windows power shell but the commands they use seem to be different from those I know as a newbie. For example I wanted to change the permission of a file using chmod, but it doesn't recognise such a command. So I would like to know a shell script that uses the known commands and works in windows.
# 2  
Old 05-18-2009
Quote:
Originally Posted by #moveon
I use windows and I wanted to know how I can use shell script in windows..
you can use Microsofts services for unix, cygwin , etc. However, i would recommend you use programming languages like Python or Perl, as they can provide more than what shell scripts can do, also in terms of vast amount of libraries available.
# 3  
Old 05-18-2009
Oh I didn't know that. So I can use ANY programming language to run shell scripts? I already have bloodshed on my PC. OK if I use this, how do I execute the program I wrote? Thanks in advance!
# 4  
Old 05-18-2009
Quote:
Originally Posted by #moveon
Oh I didn't know that. So I can use ANY programming language to run shell scripts?
no, not ANY progamming language. commonly used ones are those i mentioned for administrative tasks. And no, you don't normally run shell scripts (unless ABSOLUTELY necessary) in those programming language. those languages themselves provide their OWN facilities for you to do administrative tasks, such as listing directories, finding files, moving files, string processing etc ...most of what tools like ls, cp, mv can do..among other things.
# 5  
Old 05-18-2009
Ok. So I have bloodhshed dev installed on y PC. It is a c++ programming language software. So can I use that?
# 6  
Old 05-18-2009
Quote:
Originally Posted by #moveon
Ok. So I have bloodhshed dev installed on y PC. It is a c++ programming language software. So can I use that?
sure you can, but what do you want to do actually? program a device driver??
# 7  
Old 05-18-2009
sounds like you need to learn the mircosoft power shell.

the chmod command won't work in windows because windows has a diffrent way of doing things.

this forum is mostly about unix, you need to find a forum for windows.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C Shell script not run with Windows 10

Hi all, I have a script has been writing for Unix or Linux. Now I want to run under Windows 10. is give me Error: if:Badly formed number How to fix this please help *** This is a copy of a part of Script. set absolute_gap = 0 if ($min_p_to_p != "" && $min_p_to_p != "N/A" && $min_p_to_t... (5 Replies)
Discussion started by: dovo
5 Replies

2. Shell Programming and Scripting

Windows batch script to Shell script

Hi everyone, I've below windows batch script which is used to filter the file contents line by line and assign the matched values to the variables in for loop. for /F "tokens=1,3 delims=:" %%A in (%LOG_DIR%\PM_IS_workflow_status.log) do ( set "ATTR_NAME=%%A" if /i "!ATTR_NAME!" EQU "Folder"... (1 Reply)
Discussion started by: Kathraji
1 Replies

3. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

4. UNIX for Advanced & Expert Users

ftp in shell script from linux to windows XP

Hi, I have 9 different linux based servers and i am automating there healthcheckup by doing ssh and fetching deviations out of it in a single text file. I am doing so by using ssh keygen. I am done with the above part . Now i want to ftp that text file to my windows XP desktop and i want to... (4 Replies)
Discussion started by: gemnian.g
4 Replies

5. Shell Programming and Scripting

Change the Windows Batch script to UNIX shell script.

Hi, When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script... Script: REM :: File Name : Refresh_OTL.bat REM :: Parameters : %1 - Region REM :: : %2 - Cube Type REM ::... (5 Replies)
Discussion started by: tomailraj
5 Replies

6. UNIX for Advanced & Expert Users

Executing a shell script from windows;script present in unix

I need to execute a shell script kept in unix machine from windows. User id, password area available. For eg. There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS. Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Discussion started by: rajneesh_kapoor
4 Replies

7. Shell Programming and Scripting

FTP from unix shell script to windows

Hi, I m trying to connect/establish FTP from unix shell script to my PC.Below the script i have written #!/bin/ksh ftp -v -n ddcappip01.com << "EOF" user Amit jason bye EOF ------------------------------ERROR-------------------------- but i m getting the below error for the... (4 Replies)
Discussion started by: ali560045
4 Replies

8. Shell Programming and Scripting

Renaming putty windows with a shell script

i frequently have to open multiple putty windows to ssh into a unix server running HP-UX 11.23. Since i use some of the windows for dedicated processes i would like to rename them (the caption displayed in the titlebar) to something more convenient than the standard <Host>.<Server>.com While... (4 Replies)
Discussion started by: orno
4 Replies

9. UNIX for Advanced & Expert Users

Executing shell script from Windows FTP

Hello, Any inputs on the possibility of executing a shell script on unix box from Windows FTP TIA (1 Reply)
Discussion started by: B2BIntegrator
1 Replies

10. UNIX for Dummies Questions & Answers

How to execute a shell script from Windows

I like to start a korn job remotely, from windows. I tried REXEC and that is not what I want. Need help !!!! thanks (4 Replies)
Discussion started by: kyawlin
4 Replies
Login or Register to Ask a Question