The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what are some different commands in c shell and korn shell?? EquinoX UNIX for Dummies Questions & Answers 1 01-28-2008 09:14 PM
Bourne-again shell mrsamer UNIX for Dummies Questions & Answers 3 09-29-2006 11:42 PM
how to convert from korn shell to normal shell with this code? forevercalz Shell Programming and Scripting 21 11-22-2005 11:18 PM
KORN Shell - Spawn new shell with commands frustrated1 Shell Programming and Scripting 2 04-20-2005 11:23 AM
Read a file and replace a value- Bourne and Korn shell kenix Shell Programming and Scripting 3 09-20-2002 06:25 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-05-2006
Registered User
 

Join Date: Jul 2006
Posts: 10
bourne shell or korn shell?

Hi,
I have a script that uses "nohup" command to execute a korn shell script. Which one is the correct shell to use bourne shell or korn shell to execute a korn shell? and why?

Thanks in advanced.
Reply With Quote
Forum Sponsor
  #2  
Old 10-05-2006
Yogesh Sawant's Avatar
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 798
if you want to execute a korn shell script, use korn shell to execute it. If you use bourne shell to execute a korn shell script, you may get syntax errors since some korn shell syntax differs from bourne shell.
Reply With Quote
  #3  
Old 10-05-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
Use at the first line of the korn script
#!/bin/ksh

and then you can run this script from sh

Last edited by Hitori; 10-05-2006 at 11:43 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0