Solved

Can batch file be run on Solaris

Posted on 2009-05-12
3
1,063 Views
Last Modified: 2013-12-27
Is it possible to run a batch file (.bat) on Solaris?
0
Comment
Question by:anshul9189
  • 2
3 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 24371238
what is there in that .bat file? is it unix commands or windows commands ?
0
 

Accepted Solution

by:
mccsyd earned 50 total points
ID: 24371242
No.

.bat files are a windows only thing.

The equivalent of a .bat script on linux is a Shell Script. (But much much more powerful)

Some info: http://en.wikipedia.org/wiki/Shell_script

Here are some tutorials that helped me when i was beginning with shell scripting:
http://gd.tuwien.ac.at/linuxcommand.org/writing_shell_scripts.php
http://gd.tuwien.ac.at/linuxcommand.org/writing_shell_scripts.php

Hope This Helps!

-Kev
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24371246
then you need to rewrite them since windows scripts / commands are different from unix scripts / commands
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
aix tls version 6 318
help pulling data string using Awk 9 71
unix example issues 18 90
Image not there 4 53
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question