10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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
wc -l input.tab > output.temp
The problem is even if the... (2 Replies)
Discussion started by: beca123456
4. Shell Programming and Scripting
i have the following code in shell named as test3.sh..
export dt=`date "+%d%b%y"`
export tim=`date "+%d%b%y %HM:%MM"`
export... (4 Replies)
Discussion started by: jassi10781
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
6. Shell Programming and Scripting
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
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
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
8. Shell Programming and Scripting
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
9. UNIX for Advanced & Expert Users
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
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
Prima::StdDlg(3) User Contributed Perl Documentation Prima::StdDlg(3)
Prima::StdDlg - wrapper module to the toolkit standard dialogs
Provides a unified access to the toolkit dialogs, so there is no need to "use" the corresponding module explicitly.
Prima::FileDialog-> create-> execute;
Prima::FontDialog-> create-> execute;
# open standard file open dialog
my $file = Prima::open_file;
print "You've selected: $file
" if defined $file;
The module accesses the following dialog classes:
Invokes standard file open dialog and return the selected file(s). Uses system-specific standard file open dialog, if available.
Invokes standard file save dialog and return the selected file(s). Uses system-specific standard file save dialog, if available.
File open dialog.
See "Prima::OpenDialog" in Prima::FileDialog
File save dialog.
See "Prima::SaveDialog" in Prima::FileDialog
Directory change dialog.
See "Prima::ChDirDialog" in Prima::FileDialog
Font selection dialog.
Generic 'find text' dialog.
Generic 'find and replace text' dialog.
Printer selection and setup dialog.
Color selection dialog.
See "Prima::ColorDialog" in Prima::ColorDialog.
Image file load dialog.
See "Prima::ImageOpenDialog" in Prima::ImageDialog.
Image file save dialog.
See "Prima::ImageSaveDialog" in Prima::ImageDialog.
Anton Berezin <firstname.lastname@example.org>, Dmitry Karasik, <email@example.com>.
perl v5.14.2 2009-02-24 Prima::StdDlg(3)