View Single Post

  #2 (permalink)  
Old 10-10-2006, 03:37 AM
sweta's Avatar
sweta sweta is offline
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Wow that script is really badly written. All I can say is run script as follows to see what is going on:
Code:
sh -x config_replace somemachine ${SRC_DIR}/some.conf ${TARGET_DIR}/some.conf
or better pass -v option too

Code:
sh x- v- config_replace somemachine ${SRC_DIR}/some.conf ${TARGET_DIR}/some.conf
Above two statements will give you lots of debugging info.
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote