> > > > > > I do not know how to substitute getops. I read > > >an article[0] but I am not able to do that. > > >Giving up. > > > > > > It appears in two files, /usr/bin/savelog and > > >/lib/lsb/init-functions. Can anyone help me? > > > > Perhaps you missed my reply? > > http://lists.debian.org/debian-embedded/2008/08/msg00056.html > > Thanks. > > No, I didn't. The problem is the savelog is exiting with the > usage message. I put an echo and the options are printed on the > screen. And then it exits with the usage message.
Now I know.
These are the options passed. "-q -p -c 5". With getop "5" is seen as
an option and not as a value of an option. So
stops the script.
case var in
p) ...
q) ...
...
*) exit ;;
esac
stops the script. Two days for that.
Regards,
--
Herbert Parentes Fortes Neto (hpfn)
Linux user number 416100
0x9834F79E -- http://pgp.mit.edu/
pgpiognmvRYnb.pgp
Description: PGP signature

