Solved

Can batch file be run on Solaris

Posted on 2009-05-12
3
1,046 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
Comment Utility
what is there in that .bat file? is it unix commands or windows commands ?
0
 

Accepted Solution

by:
mccsyd earned 50 total points
Comment Utility
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
Comment Utility
then you need to rewrite them since windows scripts / commands are different from unix scripts / commands
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now