Add this below line to script so that it increases quota of a user
user [login to view URL] add <username> ADDQUOTA=1028096
-----------------------
[root@server1:/home/ramsingh/scripts/cp_closure]# cat enable_and_fix_script
#!/bin/bash
todate=`date "+%d-%m-%Y"`
for i in `cat cp_reopen_user_list`
do
echo "user [login to view URL] add $i DISABLED=0" > enable_command
/opt/criticalpath/global/bin/mgr -s [login to view URL] -p 4200 -w elswrite -e enable_command
rm -f enable_command
/home/portal/bin/[login to view URL] $i
echo $i >> enabled.and.fix.users.$todate
sleep 1
done
mv cp_reopen_user_list cp_reopen_user_list.$todate
It's not quite clear what you want but I think you just need to add the line to the enable_command
after:
echo "user [login to view URL] add $i DISABLED=0" > enable_command
but before:
/opt/criticalpath/global/bin/mgr -s [login to view URL] -p 4200 -w elswrite -e enable_command
You need to add it and not overwrite it so use '>>'.
$15 USD på 1 dag
4,8 (2 anmeldelser)
1,6
1,6
9 freelancere byder i gennemsnit $19 USD på dette job
As a Linux expert with 4+ years of experience in C and Shell Scripting i am interested in completing this task. Please confirm from your end to proceed further.
Will request additional details upon confirmation.
Thanks,
Parthiban N