How to set dialog to run from a command line ?

Hi,

finally successfully native compiled dialog.
To run I have to change directory to
/opt/dialog/bin
and run ./dialog

So I see I have to set up configuration file and global environment.
But how ?
I run make install.

And another issue is I run dialog connecting via putty terminal from
notebook MS Vista to a router and having copied some examples from the net, some characters in examples are replaced by "dot".
dialog -msgbox �Dialog Exit Example�

dialog .msgbox .Dialog Exit Example.

What terminal, keyboard emulation should I select in puty configuration ?

Thanks.

Jack

Add the below entry at the end of you .profile (I'm assuming you are the only user who is interested in doing this):

PATH=$PATH:/opt/dialog/bin
export PATH

Logout/login and it should work fine.

I've posted a reply to your other question which you posted in another thread. Please do not spawn multiple threads for same question - its wastage of everyone's time.

[quote=rikxik;302301439]
Add the below entry at the end of you .profile (I'm assuming you are the only user who is interested in doing this):

PATH=$PATH:/opt/dialog/bin
export PATH

Logout/login and it should work fine.

Thanks my friend.
Exactly what I did yesterday, basing on Google search in Linux forums.
And didn't work for me.

On Linux embedded device I need to
flashfs save && flashfs commit && flashfs enable && rebootto get changes saved in flash.

The issue is I have 4 profile files on a system
/tmp/etc/profile
/tmp/mnt/disc3_0..../etc/profile
/opt/etc/profile
/usr/etc/profile

Exactly I am the only administrator of a router.

Jack

Hi,
I did as you advised me
run
flashfs save && flashfs commit && flashfs enable && reboot
router rebooted

and still the same problem, path is not updated.

Any idea ?

Jack

[admin@oo root]$ dialog
-sh: dialog: not found
[admin@oo root]$ ./dialog
-sh: ./dialog: not found
[admin@oo root]$ cd /
[admin@oo /]$ cd opt/dialog/bin
[admin@oo bin]$ ./dialog
cdialog (ComeOn Dialog!) version 1.1-20080819
Copyright 2000-2007,2008 Thomas E. Dickey
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • Display dialog boxes from shell scripts *

path /opt/dialog/bin:
appended in
/opt/etc/profile

not appended in
/tmp/etc/profile

(just edited this file)

/usr/etc/profile is not editable

follow-up

Problem solved by my friend.
Now I can run dialog examples directly from a command line.

Darius