10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I'm trying to write a script in Dialog for configuring a router. I basically need the user to select from a list of say 4 options, confirm the option and then copy the configuration files, depending on the choice to the HDD and then reboot (I'm hoping to boot from a USB stick).
The... (0 Replies)
Discussion started by: pm77
0 Replies
2. Shell Programming and Scripting
Hi All,
I am facing a problem while checking for existence of file over ssh !
Basically, i want to ssh and check if file exists.. If file exists return 1. If file does not exits return 0 (or any value)
I am using the below code
file_avail=`ssh username@host "if ]; then exit 1;... (10 Replies)
Discussion started by: galaxy_rocky
10 Replies
3. UNIX for Dummies Questions & Answers
Hi !
I have a problem with an if/else statement in bash.
I want to check if the file exists before running a task (for example here, counting lines), and if not I need to create an empty output file
if
then
wc -l input.tab > output.temp
else
>output.temp
fi
The problem is even if the... (2 Replies)
Discussion started by: beca123456
2 Replies
4. Shell Programming and Scripting
Hi,
i have the following code in shell named as test3.sh..
#!/bin/sh
. /home/<user>/.profile
export dt=`date "+%d%b%y"`
export tim=`date "+%d%b%y %HM:%MM"`
cd
export WD=`pwd`
SID="<sid>"
export SID
export ORACLE_SID=$SID
export ORACLE_HOME=/oracle/$SID/102_64
export... (4 Replies)
Discussion started by: jassi10781
4 Replies
5. Shell Programming and Scripting
I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags.
The logic of the script would be:
- if there is <li> or <ul> on the line, do nothing (=write same line to output)
- if there is:... (0 Replies)
Discussion started by: juubuntu
0 Replies
6. Shell Programming and Scripting
Hi
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
else
echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING'
:
i wrote a script, where it begins by checking if file exists or not.
If it exists, it truncates the database... (2 Replies)
Discussion started by: rxg
2 Replies
7. Debian
Hi all,
I am working with debconf file for packaging the projects. I have used the
". /usr/share/debconf/confmodule" file to do the packaging in debian standard. It worked fine. When ever I am installing the package in apt-get the dialogs are come as I mentioned in the templates file.... (0 Replies)
Discussion started by: Nila
0 Replies
8. Shell Programming and Scripting
Hi,
example of Unix / Linux dialog utility is below.
I am going to use dialog as simple GUI for testing of a modem.
So I need to combine some dialog boxes into one.
I need to have input box, output box, info box, dialog box,
radiobox as in any standard program with graphical user... (2 Replies)
Discussion started by: jack2
2 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I have written a script which sends mail using “sendmail” command and mail contains HTML code.
When I run scripts on terminal it is working properly, but when I try to run this script through a crontab file it sends blank mail with proper subject.
crontab file detail :
00 05... (1 Reply)
Discussion started by: abhishek.mind
1 Replies
10. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
do_dialog(3alleg4) Allegro manual do_dialog(3alleg4)
NAME
do_dialog - Basic dialog manager function. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int do_dialog(DIALOG *dialog, int focus_obj);
DESCRIPTION
The basic dialog manager function. This displays a dialog (an array of dialog objects, terminated by one with a NULL dialog procedure), and
sets the input focus to the focus_obj (-1 if you don't want anything to have the focus). It interprets user input and dispatches messages
as they are required, until one of the dialog procedures tells it to close the dialog, at which point it returns the index of the object
that caused it to exit, or until ESC is pressed, at which point it returns -1.
SEE ALSO
popup_dialog(3alleg4), init_dialog(3alleg4), centre_dialog(3alleg4), set_dialog_color(3alleg4), find_dialog_focus(3alleg4), excus-
tom(3alleg4), exgui(3alleg4), exrgbhsv(3alleg4)
Allegro version 4.4.2 do_dialog(3alleg4)