RE: converting NT batch files to Unix shell

2003-02-20 Thread Jared . Still
Well, I was going to say that, but thought everyone might be
tired of hearing it by now. 

Jared





"Deshpande, Kirti" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/20/2003 08:38 AM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
    Subject:    RE: converting NT batch files to Unix shell


... re-write those in Perl. Test the Perl version on NT. It will work on 
UNIX as well :) 
Am I right, Jared? 

- Kirti 
(Perl Newbie)

-Original Message-
Sent: Wednesday, February 19, 2003 6:10 PM
To: Multiple recipients of list ORACLE-L


The best thing to do is document the logic in the script,
throw it away, and rewrite it in the shell of your choice.

Unless of course you can find some automated utility
to convert batch files to shell.

Jared





kommareddy sreenivasa <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/19/2003 01:43 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L 
<[EMAIL PROTECTED]>
    cc: 
    Subject:    converting NT batch files to Unix shell


Hi DBAs,

OS: Solaris 2.8
DB: 8i

Is there any tricks/techniques ( or documentation) to
convert NT batch file to Unix shell script.

( seems to be the question silly.)

But I really need it for our new project.

This is to migrate the data (flatfiles) to oracle from
AS400.

We have received some batch files written in NT (along
with the data (flat) files, and if we can convert the
batch files  to unix shell script the process would
become easy for migration.

Thanks in advance,
Srinivas


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Deshpande, Kirti
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: converting NT batch files to Unix shell

2003-02-20 Thread Deshpande, Kirti
. re-write those in Perl. Test the Perl version on NT. It will work on UNIX as 
well :) 
Am I right, Jared? 

- Kirti 
(Perl Newbie)

-Original Message-
Sent: Wednesday, February 19, 2003 6:10 PM
To: Multiple recipients of list ORACLE-L


The best thing to do is document the logic in the script,
throw it away, and rewrite it in the shell of your choice.

Unless of course you can find some automated utility
to convert batch files to shell.

Jared





kommareddy sreenivasa <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/19/2003 01:43 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:    converting NT batch files to Unix shell


Hi DBAs,

OS: Solaris 2.8
DB: 8i

Is there any tricks/techniques ( or documentation) to
convert NT batch file to Unix shell script.

( seems to be the question silly.)

But I really need it for our new project.

This is to migrate the data (flatfiles) to oracle from
AS400.

We have received some batch files written in NT (along
with the data (flat) files, and if we can convert the
batch files  to unix shell script the process would
become easy for migration.

Thanks in advance,
Srinivas


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Deshpande, Kirti
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Re: converting NT batch files to Unix shell

2003-02-20 Thread Daniel Wisser
hi sree!

since the shells (whether korn, bash or any other) are very powerful
and cmd.exe is a rather poor thing, i would suggest the following:

either:
find someone who is capable of shell programming and has been on NT
or can read the screen after typing HELP in cmd.exe
he will have no problem with it
or:
make a step by step discription of what the script is supposed to do
and give it to the shell programmer.

daniel
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Daniel Wisser
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Re: converting NT batch files to Unix shell

2003-02-19 Thread Jared . Still
The best thing to do is document the logic in the script,
throw it away, and rewrite it in the shell of your choice.

Unless of course you can find some automated utility
to convert batch files to shell.

Jared





kommareddy sreenivasa <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 02/19/2003 01:43 PM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc: 
Subject:    converting NT batch files to Unix shell


Hi DBAs,

OS: Solaris 2.8
DB: 8i

Is there any tricks/techniques ( or documentation) to
convert NT batch file to Unix shell script.

( seems to be the question silly.)

But I really need it for our new project.

This is to migrate the data (flatfiles) to oracle from
AS400.

We have received some batch files written in NT (along
with the data (flat) files, and if we can convert the
batch files  to unix shell script the process would
become easy for migration.

Thanks in advance,
Srinivas



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: kommareddy sreenivasa
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




RE: converting NT batch files to Unix shell

2003-02-19 Thread John Kanagaraj
> see what the NT script was doing.  (I'm a 'reformed' MCSE, so 
> I'm not speaking from the standpoint of a Unix bigot, I just 
> know a better world when I see it.)

Aaah - you have seen the Light! Welcome aboard.

Srinivas,

The answer unfortunately is 'no', but knowing a little bit about the
'inadequacies' of M$ BAT programming, converting them to UNIX Korn scripts
should be a cinch.

Btw, I will be presenting on UNIX for beginner DBAs this IOUG Live
(April27-May1) and will cover the basics required for such a task. The paper
will be made available afterwards, fwiw...

John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

Disappointment is inevitable, but Discouragement is optional! 

** The opinions and statements above are entirely my own and not those of my
employer or clients **


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




Re: converting NT batch files to Unix shell

2003-02-19 Thread Darrell Landrum
This may not be what one wants to hear when given this task (at one time I wouldn't), 
in the absence of any super tools, being that Unix commands are so powerful and 
feature rich compared to NT, I would take each NT script, determine its purpose and 
write the Unix script from scratch with that goal in mind.
You'll likely find you can do the same task better, easier, quicker, and very likely 
can enhance it if you wish.
Windows NT Shell Scripting by Timothy Hill, Linda Engelman, published by Pearson is a 
good book to help a Unix programmer see what the NT script was doing.  (I'm a 
'reformed' MCSE, so I'm not speaking from the standpoint of a Unix bigot, I just know 
a better world when I see it.)
I've written batch jobs to run in both environments, so if you take this approach and 
run into trouble, definitely post again and I'll help where I can.

Darrell


>>> [EMAIL PROTECTED] 02/19/03 03:43PM >>>
Hi DBAs,

OS: Solaris 2.8
DB: 8i

Is there any tricks/techniques ( or documentation) to
convert NT batch file to Unix shell script.

( seems to be the question silly.)

But I really need it for our new project.

This is to migrate the data (flatfiles) to oracle from
AS400.

We have received some batch files written in NT (along
with the data (flat) files, and if we can convert the
batch files  to unix shell script the process would
become easy for migration.

Thanks in advance,
Srinivas



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
-- 
Author: kommareddy sreenivasa
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- 858-538-5051 http://www.fatcity.com 
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Darrell Landrum
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




converting NT batch files to Unix shell

2003-02-19 Thread kommareddy sreenivasa
Hi DBAs,

OS: Solaris 2.8
DB: 8i

Is there any tricks/techniques ( or documentation) to
convert NT batch file to Unix shell script.

( seems to be the question silly.)

But I really need it for our new project.

This is to migrate the data (flatfiles) to oracle from
AS400.

We have received some batch files written in NT (along
with the data (flat) files, and if we can convert the
batch files  to unix shell script the process would
become easy for migration.

Thanks in advance,
Srinivas



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: kommareddy sreenivasa
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).