how do i create a shell script that will rewrap itself to the correct shell wrap

how do i create a shell script that will rewrap itself to the correct shell wrap

Post by bmar.. » Fri, 13 Oct 2000 04:00:00




   >shell scripts normally have to run under the same shell or at the
   >very least, you have to specify say ksh shellscript...
   >how do i create a shell script that will rewrap itself to the
   >correct shell wrapper regardless of what shell the user runs it
   >under?
   >so even if the user is under sh, the shell will auto-sense and put a
   >ksh wrapper on itself?
Find out where ksh is located on your system, and make the first line of
the script #! followed by the pathname, for example:
#!/bin/ksh
or
#!/usr/bin/ksh

Net-Tamer V 1.08X - Test Drive

 
 
 

1. how do i create a shell script that will rewrap itself to the correct shell wrapper regardless of what shell the user runs it under?

shell scripts normally have to run under the same shell or at the very
least, you have to specify say ksh shellscript...

how do i create a shell script that will rewrap itself to the correct
shell wrapper regardless of what shell the user runs it under?

so even if the user is under sh, the shell will auto-sense and put a
ksh wrapper on itself?

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Swap error after adding RAM?

3. mouse broken since I installed sw 3.0

4. handling SIGINT in shell scripts when executing another shell script.

5. i740 supported?

6. Q: How can I have a shell script call another shell script...

7. Setting up dialup slip access.

8. Shell script invoking other shell scripts

9. Convert Bash shell script to Korn shell script

10. Shell Script Help (C-Shell Script)

11. NEWBIE-Shell scripting - When to use script variable vs. create tmp file???

12. How to pass a variable from a shell script to another shell script...