Skip to content

how can i read data from a file in expect script

I looked through this code online but will it read data if it is arragnged in 2 columns like. and so on I would like to assign each TFTP_SERVER_ADDRESS to a variable and use it in my script. furthermore,Is this piece of code secure : Answer Sample Script that reads data from a file and then calls an expect sc…

Why XGrabKey generates extra focus-out and focus-in events?

Does anyone know an xlib function to trap a keypress event without losing the original focus? How to get rid of it? (or “to use XGrabKey() without generating Grab-style focusout”?) (or “How to get rid of NotifyGrab and NotifyUngrab focus events at system level?) The XGrabKey will lose focus …

Linux: Use parameter as file shortcut

Cheers everyone 🙂 I’m trying to make a linux script. This script shall be called with one parameter, a file stored in my home directory. I can’t seem to use So i have this variable $var1 and I want to save it in a file that does exist and its name is given in $1 Anyone help me please! Answer