-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When executing this part of the TB network configuration:
I receive the error -bash: !/bin/bash: event not found. This is my code:
martin@Laptop:~$ for node in 192.168.3.11 192.168.3.12 192.168.3.13; do
ssh root@$node "cat > /usr/local/bin/pve-en05.sh << 'EOF'
#!/bin/bash
LOGFILE=\"/tmp/udev-debug.log\"
echo \"\$(date): en05 bringup triggered\" >> \"\$LOGFILE\"
for i in {1..5}; do
{
ip link set en05 up mtu 65520
echo \"\$(date): en05 up successful on attempt \$i\" >> \"\$LOGFILE\"
break
} || {
echo \"\$(date): Attempt \$i failed, retrying in 3 seconds...\" >> \"\$LOGFILE\"
sleep 3
}
done
EOF"
ssh root@$node "chmod +x /usr/local/bin/pve-en05.sh"
done
-bash: !/bin/bash: event not foundThe file /usr/local/bin/pve-en05.sh will be created but without the Shebang at the beginning.
Metadata
Metadata
Assignees
Labels
No labels