Search Results

Search: Posts Made By: jnojr
930
Posted By Corona688
That is likely a bug in your script. Show it,...
That is likely a bug in your script. Show it, please.

unset $PASSWORD is wrong. unset PASSWORD is what you want, I think.
1,115
Posted By Chubler_XL
How about this: #!/bin/bash read -sp...
How about this:

#!/bin/bash

read -sp "Remote passwd: " PASS

for host in macbook tleepermacbook
do
ssh -tt $host sudo grep CMABuildNumber /etc/cma.conf << EOF
$PASS
EOF
done
5,474
Posted By rdrtx1
try also: awk ' BEGIN {c[3]=13; c[4]="*";...
try also:
awk '
BEGIN {c[3]=13; c[4]="*"; c[5]="$W1"}
$0 ~ /^\// {
l=$0; o="";
for (i=1; i<=NF; i++) {
w=l; sub("[ \t].*", "", w);
o=o (c[i] ? c[i] : w);
sub("^[ \t]*",...
Showing results 1 to 3 of 3

 

Featured Tech Videos

All times are GMT -4. The time now is 10:24 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy