I am writting a script (ksh) to fire off a backup utility nightly. The utility prompts for a password when it runs.
I have tried the following method that works for ftp.
#!/bin/ksh
ndsbackup cf /data/bak/`date +%y%m%d` -a adminnamehere <<EOF
echo "passwordhere"
EOF
I have also tried without quotes/no echo statement etc, no dice. I always get prompted
password:
in the shell from which the script was run.
Anyone done something similar?
The utility is ndsbackup for Novell eDirectory on Solaris 2.8
The ndsbackup utility does not support providing the password in the command as an argument.
I have tried the following method that works for ftp.
#!/bin/ksh
ndsbackup cf /data/bak/`date +%y%m%d` -a adminnamehere <<EOF
echo "passwordhere"
EOF
I have also tried without quotes/no echo statement etc, no dice. I always get prompted
password:
in the shell from which the script was run.
Anyone done something similar?
The utility is ndsbackup for Novell eDirectory on Solaris 2.8
The ndsbackup utility does not support providing the password in the command as an argument.