3

When I run the following from the linux command line it works properly and populates the chkconfig.bak file correctly :

#chkconfig --list > chkconfig.bak

But when the command is run from a daily shell script the chkconfig.bak file comes out empty.

Any guesses why this would be happening?

Haluk
  • 943
  • 2
  • 15
  • 20

1 Answers1

2

You will probably need to use the full path to chkconfig

/sbin/chkconfig --list > chkconfig.bak

and you may want to put a full path on the output too.

user9517
  • 115,471
  • 20
  • 215
  • 297