48007/to-pass-the-user-s-password-to-scp
Try using the 'expect' script on the terminal
#!/usr/bin/expect spawn scp /usr/bin/file.txt root@<ServerLocation>:/home set pass "Your_Password" expect { password: {send "$pass\r"; exp_continue} }
to run:
expect test.exp
Hope it helps!
Cheers!
#!/bin/bash for i in `cat peptides.txt` do echo $i done READ MORE
1. Change the password file directly for ...READ MORE
To list all the groups groups or to list ...READ MORE
Check filesystem usage. df -h If /var is showing ...READ MORE
Please check the below-mentioned syntax and commands: To ...READ MORE
Here is what you can do.Just use packagesmatching to ...READ MORE
Follow the below commands to install PostgreSQL (PSQL) ...READ MORE
Use the following to get the postgres prompt ...READ MORE
mkdir -p /foo/bar && cp myfile "$_" ...READ MORE
the following will print all but the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.