bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting $@ to work from script


From: Michael D. Setzer II
Subject: Getting $@ to work from script
Date: Wed, 19 Dec 2012 07:09:53 +1000

Do get the parameters from your original script had to change the
$@ with `echo address@hidden to have it built into the created script.

Also, dialog seems to be able to display all text if you can widen
the terminal screen as with gnome-terminal, but not sure if you
have a fixed screen that can not be resized.


#!/bin/bash
echo "dialog --clear --backtitle \"Node Management\" --title \"Nodes `echo 
address@hidden"  --no-collapse --radiolist \"text\" 0 0 0 \\" >testdialog
echo \" TEXT OPTION\" \"Status as of 20120-06-12\" "off" \\ >>testdialog
#for a in `ls | grep -v \ | grep -v \&`
#do
#  echo \" $a\" \"Status\" "off" \\  >>testdialog
#done
echo "\" internal/house/customers/abc\""             "\"online        Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" internal/house/customers/abcdefgh\""        "\"online        Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" internal/offsite/customers/abc\""           "\"unknown       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcd\""            "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcde\""           "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdef\""          "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdefg\""         "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdefgh\""        "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdefghi\""       "\"maintenance   Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdefghij\""      "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "\" external/house/customers/abcdefghijk\""     "\"offline       Some 
description, long, long, stops here\"" off \\>> testdialog
echo "2>result.out" >>testdialog
gedit testdialog
./testdialog
gedit result.out

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor
  Guam Community College  Computer Center
  mailto:address@hidden
  mailto:address@hidden
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins
  G4L Disk Imaging Project maintainer
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

address@hidden CREDITS
SETI        13480656.260245   |   EINSTEIN     9385702.689852
ROSETTA      5609496.685277   |   ABC         15594487.450180




reply via email to

[Prev in Thread] Current Thread [Next in Thread]