Create Bash shell scripts corresponding to windows bat files
Experts,
I am newbie in shell scripting. I want to write Bash shell scripts corresponding to windows bat files. I have installed cygwin at c:\cygwin and i am trying to crate the sh file using vi editor. i am not able to understand how to use linux/unix convention for the code. following is my code.
where can i find a document or sample code to use in cygwin? i tried with #!/bin/bash. it started to print error at the end of file. do i need to set any path before writing scripts? please suggest or advise.
Thank you.
Last edited by Scott; 09-16-2010 at 08:21 AM..
Reason: Replaced ICODE tags with regular CODE tags
Hello
i need a shell script to create 100 users i am running hp-ux.........
startegy is something like this
craete a shell script
!/bin/ksh
counter=1
while
do
{
useradd usr$counter
passwd usr$counter
# here begins my problem when i say passwd usr$counter
#it again prompts... (9 Replies)
Hey guys,
I am working on my shell scripts in wordpad in windows. Then, I upload it to my unix using psftp, but when I open those files with "vi" in Unix, there are all these "^M" characters in the file. Would anyone of you have a clue as to why?
Help would be appreciated.
Thanks,
Laud (4 Replies)
Hello,
Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file?
I hope you can assist me with this.
Thanks! (0 Replies)
hi evry one , I did some ksh scripts for file editing in AIX 5.2 ver,
issue is while I was trying to run these scripts in windows box as batch files windows is not recognising the awk part of the ksh script,as it is GNU environment, so any one who can help me will be appreciated.
this is the... (3 Replies)
ftp -n -v <<EOF
verbose
open 3.57.40.79
user infodvlp pr0gram
ascii
lcd /home/a501420038/GLA/Success_Load/
cd /ftp/SrcFiles/csg/InstruAsia/
get AU_Success_Log.txt
close
quit
EOF
Please help on this, this gives the out put "AU_Success_Log.txt?" As question mark in the last what will... (1 Reply)
Experts,
I am newbie in shell scripting. I want to write Bash shell scripts corresponding to windows bat files. I have installed cygwin at c:\cygwin and i am trying to crate the sh file using vi editor. i am not able to understand how to use linux/unix convention for the code. following is my... (15 Replies)
been messing around with linux for a few months...not too good yet. thinking about taking a class or something, this #### is hard.......anyway, im trying to make an output file using the input from a prompt. heres basically what i have now (random example)
echo -n "Please enter your name: "
read... (7 Replies)
Discussion started by: rickbobb4444
7 Replies
LEARN ABOUT DEBIAN
airport2-portinspector
AIRPORT2-PORTINSPECTOR(1) General Commands Manual AIRPORT2-PORTINSPECTOR(1)NAME
airport2-portinspector - Port maps inspector for the Apple AirPort Extreme Base Station ("Snow")
SYNOPSIS
airport2-portinspector
DESCRIPTION
airport2-portinspector allows you to inspect the port maps used by the hosts associated with your base station.
OPTIONS
airport2-portinspector accepts no command-line options. airport2-portinspector is a wrapper script around the PortInspector.jar jar file
located in /usr/share/java/airport-utils.
You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ-
ment variable to 1 to get the debug output from the wrapper script.
ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script.
JAVACMD
The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for
JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can
be configured using the Debian alternatives system (see update-alternatives(8)).
JAVA_HOME
The full path where your JDK/JRE is installed.
JAVA_BINDIR
The full path to the directory where the java executable is located.
JAVA_ARGS
Extra command-line arguments to be passed to the Java Virtual Machine.
AUTHOR
airport2-portinspector was written by Jon Sevy <jsevy@cs.drexel.edu>.
This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others).
May 20, 2006 AIRPORT2-PORTINSPECTOR(1)