SUMMARY:Running cron jobs in Korn shell
TOBY POTTS (tobypotts@pmsc.com)
Mon, 7 Apr 1997 11:18:24 -0400
Thanks to all the QUICK responses:
Original Question:
} Hello sun-managers!
}
} I have a number of users creating korn and C shell scripts for
file
} processing. They need to place these scripts in their
individual cron } areas for automatic execution. How do they
ensure that their jobs run } under the appropriate shell (korn or
bourne or c)? Also, not all
} users may use the same shell, so it would be nice to do this on
an
} individual user basis. Is there a way to include their
.profile for } the shell environment? Thanks for any input you
may have.
As I had suspected the answer is:
place the syntax for the appropriate shell at the top of each script.
#!/bin/<shell>
Again thanks to all!
Toby