Results 1 to 5 of 5
I want to create a simple dialog based application where at startup it will print the welcome screen along with username.. I am trying to call it like that but ...
- 09-21-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 3
dialog based control
I want to create a simple dialog based application where at startup it will print the welcome screen along with username.. I am trying to call it like that but instead of username whoami appear in dialog. Code below
n=whoami
dialog --title "Welcome to the System Administration Utitlity $n" --msgbox "" 4 100
- 09-21-2010 #2
Hi,
when you set a variable with a command output, you must use `command`:
n=`whoami`
RegardsThere are people trying to avoid mistakes and another that tries to target.
- 09-22-2010 #3Just Joined!
- Join Date
- Sep 2010
- Posts
- 3
- 09-22-2010 #4
not '
use `You must always face the curtain with a bow.
- 09-22-2010 #5
Or you can use a buildin variable
Code:n="$USER"
Can't tell an OS by it's GUI


Reply With Quote
