Sending job completion from shell script, help needed.
- Project scope: Locking few users and sending them email that has to be automated.
- Issue: the mailx part isn't working as I need help on how to input the options for mailx.
- DB server: AIX 7.x
- My work so far: I have a file F1 that has the below.
alter user x1 account lock; alter user x2 account lock;
5. I have the mailx part of the shell script (in Ksh) for single users as below:
mailx -s "WARNING - $ORACLE_SID User X1 Account Locked" -c "manager@xyz.com" "manager@xyz.com x1@xyz.com"
For multiple users:
a. how to input x1, x2... into mailx command from file F1
2