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
13 hours 56 min ago
23 hours 24 min ago
1 day 14 min ago
1 day 3 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 20 hours ago
2 days 1 hour ago
2 days 3 hours ago