|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Dear Experts,
I need to translate Bourne scripts to Batch files. Please me with the Batch commands equivalent to Bourne commands. Thank you! Regards, Kanav |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1184976588.826470.249800@g4g2000hsf.googlegroups. com>,
<arorakanav@gmail.com> wrote: >Dear Experts, > >I need to translate Bourne scripts to Batch files. >Please me with the Batch commands equivalent to Bourne commands. What are "Batch files" ? In general, shell scripts are executable via the "batch" command, if that is any . |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
arorakanav@gmail.com writes:
> Dear Experts, > > I need to translate Bourne scripts to Batch files. > Please me with the Batch commands equivalent to Bourne commands. Put a "&" at the end of the line, and press return. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
arorakanav@gmail.com wrote...
>I need to translate Bourne scripts to Batch files. >Please me with the Batch commands equivalent to Bourne commands. If you meant Windows batch files, no translation. You can install cygwin on Windows, which allows you to run Bourne scripts on Windows. Google cygwin. Google UnxUtils - common GNU utilities to native Win32. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
arorakanav@gmail.com wrote in news:1184976588.826470.249800@g4g2000hsf.googlegro ups.com:
> Dear Experts, > > I need to translate Bourne scripts to Batch files. > Please me with the Batch commands equivalent to Bourne commands. > > Thank you! > > Regards, > Kanav Below are some command equivalent lists to get you started. More assistance would be off-topic here: try asking in <news:alt.msdos.batch.nt> Command Equivalents: http://www.yolinux.com/TUTORIALS/uni...dos_users.html http://unix.ed.ac.uk/DOStoUNIX.html http://www.ai.uga.edu/mc/winforunix.html http://www.webs1.uidaho.edu/rzenner/unixfor.htm Windows Command Lists: http://www.microsoft.com/resources/d....mspx?mfr=true http://www.ss64.com/nt/ |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
On Jul 22, 4:00 am, Mark Blain <mbla...@yahoo.com> wrote:
> aroraka...@gmail.com wrote innews:1184976588.826470.249800@g4g2000hsf.googleg roups.com: > > > Dear Experts, > > > I need to translate Bourne scripts to Batch files. > > Please me with the Batch commands equivalent to Bourne commands. > > > Thank you! > > > Regards, > > Kanav > > Below are some command equivalent lists to get you started. > More assistance would be off-topic here: try asking in > <news:alt.msdos.batch.nt> > > Command Equivalents:http://www.yolinux.com/TUTORIALS/uni...er/unixfor.htm > > Windows Command Lists:http://www.microsoft.com/resources/d...w.ss64.com/nt/ Thank you Mark. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Jul 21, 5:13 am, harryooopot...@hotmail.co_ (Harry331) wrote:
> aroraka...@gmail.com wrote... > >I need to translate Bourne scripts to Batch files. > >Please me with the Batch commands equivalent to Bourne commands. > > If you meant Windows batch files, no translation. > > You can install cygwin on Windows, which allows you to run > Bourne scripts on Windows. > > Google cygwin. > > Google UnxUtils - common GNU utilities to native Win32. Thank you Mark. |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Jul 21, 5:13 am, harryooopot...@hotmail.co_ (Harry331) wrote:
> aroraka...@gmail.com wrote... > >I need to translate Bourne scripts to Batch files. > >Please me with the Batch commands equivalent to Bourne commands. > > If you meant Windows batch files, no translation. > > You can install cygwin on Windows, which allows you to run > Bourne scripts on Windows. > > Google cygwin. > > Google UnxUtils - common GNU utilities to native Win32. Thank you Harry. |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
On Jul 21, 3:39 am, Maxwell Lol <nos...@com.invalid> wrote:
> aroraka...@gmail.com writes: > > Dear Experts, > > > I need to translate Bourne scripts to Batch files. > > Please me with the Batch commands equivalent to Bourne commands. > > Put a "&" at the end of the line, and press return. Thank you for extending Maxwell, but I did not understand your answer. |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
On Jul 21, 2:19 am, gaze...@xmission.xmission.com (Kenny McCormack)
wrote: > In article <1184976588.826470.249...@g4g2000hsf.googlegroups. com>, > > <aroraka...@gmail.com> wrote: > >Dear Experts, > > >I need to translate Bourne scripts to Batch files. > >Please me with the Batch commands equivalent to Bourne commands. > > What are "Batch files" ? > > In general, shell scripts are executable via the "batch" command, if > that is any . Thank you Kenny. I meant Batch scripts creating .bat files. |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
In article <1185195446.379312.48520@q75g2000hsh.googlegroups. com>,
<arorakanav@gmail.com> wrote: >On Jul 21, 2:19 am, gaze...@xmission.xmission.com (Kenny McCormack) >wrote: >> In article <1184976588.826470.249...@g4g2000hsf.googlegroups. com>, >> >> <aroraka...@gmail.com> wrote: >> >Dear Experts, >> >> >I need to translate Bourne scripts to Batch files. >> >Please me with the Batch commands equivalent to Bourne commands. >> >> What are "Batch files" ? >> >> In general, shell scripts are executable via the "batch" command, if >> that is any . > >Thank you Kenny. I meant Batch scripts creating .bat files. > You want a script to produce a file with a .bat extension? Something like: #!/bin/sh echo "hello, world" > foo.bat |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
On Jul 21, 8:09 am, aroraka...@gmail.com wrote:
> Dear Experts, > > I need to translate Bourne scripts to Batch files. > Please me with the Batch commands equivalent to Bourne commands. > > Thank you! > > Regards, > Kanav give some examples of the commands in Unix you want to convert. |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
arorakanav@gmail.com writes:
> On Jul 21, 3:39 am, Maxwell Lol <nos...@com.invalid> wrote: > > aroraka...@gmail.com writes: > > > Dear Experts, > > > > > I need to translate Bourne scripts to Batch files. > > > Please me with the Batch commands equivalent to Bourne commands. > > > > Put a "&" at the end of the line, and press return. > > Thank you for extending Maxwell, but I did not understand your > answer. If you don't know what the "&" does, then I suggest you read the manual pages on the shell. i.e. In short, when you put the "&" at the end of the linne, it runs your script in the background. This is like a batch file. |
|
|
|
#14 |
|
Messages: n/a
Hébergeur: |
arorakanav@gmail.com writes:
> On Jul 21, 2:19 am, gaze...@xmission.xmission.com (Kenny McCormack) > wrote: > Thank you Kenny. I meant Batch scripts creating .bat files. Why do you want a file with a ".bat" extension? Do you want to run Windows commands on a Linux system? Unix doesn't need extensions. Windows does. You can make a "batch" file have any name you want to. You should know that "batch" means more than a simple script to computer experts. A "Batch" job is something that is scheduled to run at a future date. If you are talking about a shell script, you 1) Create a file with any name (say "foo") 2) Put the shell you want to use in the first line with the #! characters first, exacmple echo "#!/bin/sh" >foo 3) Put the commands you want in the file using an editor 4) Make the file executable chmod +x foo 5) execute the script ./foo |
|
![]() |
| Outils de la discussion | |
|
|