Me gustaría acceder a la variable de entorno PATH dentro de un script esperado.¿Cómo acceder a las variables de entorno en un script Expect?
¿Cómo puedo lograr eso?
Mi script actual es:
#!/usr/bin/expect
set timeout 300
send "echo $PATH\r"
y su ouput es:
can't read "PATH": no such variable
while executing
"send "echo $PATH\r""
¡Genial! Muchas gracias Glenn! –