Solved

Can batch file be run on Solaris

Posted on 2009-05-12
3
1,055 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NTP Server in VMware 5 164
sumHeights  challenge 17 66
Annoying "thing" blocks my view 4 81
UNIX SCP 5 65
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.:

911 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

24 Experts available now in Live!

Get 1:1 Help Now