On Wed, 30 Dec 2009 10:30:58 +0000 Liviu Andronic <landronimirc@xxxxxxxxx> wrote: > Dear all > Is it possible to use one user input in two different commands run at > the same time. For example, I need to change the freq of both my > cores: > sh>cpufreq-set -c 0 --max 1.05GHz && cpufreq-set -c 1 --max 1.05GHz > > For this, I use > cpufreq-set -c 0 --max %{(freq)@Enter max freq for CPU0 (in GHz):}GHz > && cpufreq-set -c 1 --max %{(freq)@Enter max freq for CPU1 (in > GHz):}GHz > > Notice that I use the same input twice. But currently I am > constrained to enter it twice, instead of once. So would it be > possible to input some data once, and re-use it multiple times in the > same command? You could try assigning the macro result to a variable, then use that in the command, say ... SPEED=%{(freq)@Enter max freq for CPU};cpufreq-set -c 0 --max $SPEED && cpufreq-set -c 1 --max $SPEED Never tried this sort of thing myself, not sure if it will work. Regards Tom -- Users can unsubscribe from the list by sending email to emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by logging into the web interface.