lmatthews6
3rd November 2003, 18:56
I have created a wrapper script for bshell that allows me to check the expiration date for the users password and send them a message if the password is close to expiration. It works great with one exception - the key mappings for users no longer work. Does anyone have any suggestions as to why this doesn't work and any work arounds?

We are using BaanIVc4 on HP-UX.

NvanBeest
4th November 2003, 10:48
Could you post the script? Maybe a small mistake that one of us could point out, but without code it's a bit hard...

lmatthews6
4th November 2003, 16:23
This is the script:

#!/bin/sh
/baan/bse/bin/checkpw.pl &
/baan/bse/bin/bshell6.1 $*


The checkpw.pl is a perl script that parses the output from "/bin/passwd -s userid" to get the number of days until password expiration. If within 10 days of expiration, it uses bshcmd6.1 to send a message to the user.

dave_23
4th November 2003, 17:22
Try using ksh, a lot of the fancy mappings that you'll see in a .profile won't be read for sh.

(unless you're os just uses ksh for sh like Solaris..)

Dave

lmatthews6
4th November 2003, 17:29
That fixed it. Thanks!

NvanBeest
4th November 2003, 17:33
Talk about a small problem! One character fixed it! Good work Dave!