Thanks for your reply... please look at the script and help me on this....
#!/bin/sh
INI_FILE=/home/pvcs/Ram/path.ini
# INI_FILE is the input file that's where we have the host , Remote host and # source and destination directories mentioned.
if [ -f ${INI_FILE} ]
then
#Run the INI_FILE
echo "Running INI FILE"
. ${INI_FILE}
echo "${INI_FILE}"
echo "${HOST}"
echo "${D_HOST}"
else
echo " \n Environment file <PATH.INI> not present. Please check. \n"
exit 1
fi
perm() {
cd ${SRC_DIR}
chmod -R 775 *
}
perm;
File_Transfer() {
cd ${SRC_DIR}
cat /home/pvcs/Ram/scp1.sh | ssh ${USER}@${D_HOST}
# scp1.sh is sudo user file.. where the below mentioned command will # be executed....
#sudo /usr/local/sbin/mcds
}
File_Transfer;
File_SCP()
{
# sudo /usr/sbin/sudo/mcds
scp -p ${SRC_DIR}/*.sh ${USER1}@${D_HOST}:${DES_DIR}
}
File_SCP;
Can you help me how to add the mfc user in this scripts... i am new to scripting...
Any help would be really helpful...
|
Recent comments
2 days 14 hours ago
2 days 23 hours ago
3 days 2 hours ago
3 days 3 hours ago
3 days 5 hours ago
3 days 6 hours ago
3 days 8 hours ago
3 days 9 hours ago
4 days 1 hour ago
4 days 2 hours ago