Portál AbcLinuxu, 9. srpna 2025 14:08
scp -r tests/ "$host": ssh "$host" tests/run_tests.sh scp "$host":tests/result.txt results/ ssh "$host" 'rm -rf tests'Problem je, ze se to 4x pta na heslo
#!/usr/bin/expect -f spawn /root/bin/htpasswd -m .htpasswd [lindex $argv 0] set password [lindex $argv 1] expect "New password:" send "$password\r" expect "Re-type new password:" send "$password\r" expect eof
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.