PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Bourne to Batch file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Bourne to Batch file

Réponse
 
LinkBack Outils de la discussion
Vieux 21/07/2007, 01h09   #1
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Bourne to Batch file

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

  Réponse avec citation
Vieux 21/07/2007, 01h19   #2
Kenny McCormack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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 .

  Réponse avec citation
Vieux 21/07/2007, 02h39   #3
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 21/07/2007, 04h13   #4
Harry331
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 22/07/2007, 03h00   #5
Mark Blain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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/
  Réponse avec citation
Vieux 23/07/2007, 13h55   #6
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 13h55   #7
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 13h56   #8
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 13h56   #9
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 13h57   #10
arorakanav@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 14h14   #11
Kenny McCormack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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

  Réponse avec citation
Vieux 23/07/2007, 14h57   #12
mik3l3374@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.

  Réponse avec citation
Vieux 23/07/2007, 16h21   #13
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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.
  Réponse avec citation
Vieux 23/07/2007, 16h27   #14
Maxwell Lol
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bourne to Batch file

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



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17167 seconds with 22 queries