I’m trying to write a script for users to easily check folder size.
The idea is to have a menu that starts at the top directory and then drills down to lower directories.
Selections 1-9 work fine.
The issue I’m having is any 2 digit menu selections (10+) doesn’t work and it returns the error message ‘Invalid Selection’
Can someone explain why I’m unable to enter a 2 character menu option?
* For the code example I removed options 3-9.
I know I could use alpha characters to have more than 9 options but I’m trying to understand the error.
Thank you for your time and knowledge.
Last edited by Scott; 07-10-2014 at 02:58 PM..
Reason: Added code tags; removed FONT tags
Hello:
NOOB here. I attempted to use smit mkcd. Failed on first attempt, not enough space. 2nd attempt tried to place iso on /usr, not enough space there. Cleanup ran for about 5 minutes after aborting. Now AIX won't boot. LCD display on 7029-6E3 says: 0517 MOUNT /USR. Attempted to boot from CD... (11 Replies)
I dont know what the heck happen but one of our DBAs was working on a cluster for oracle. Rebooted the box and viola, the OS won't load. After the POST message, I get a blinking cursor on the upper left hand corner. Doesn't even say "GRUB" or anything, it just blinks.
I tried going into rescue... (1 Reply)
hey all, me again....having a problem with my code, where I essentially am trying to show a menu, have the user select an option (from 1 to 5), then display which selection they picked...
#!/bin/bash
# A LIST OF THE ERROR MESSAGES AND THE PROPER SYNTAX:
error_0="Correct amount of... (1 Reply)
I am automating voicemail backups and can use plink to login, but I want to pass input to the menu, not the linux shell:
This will log me in.....
c:\Batch>plink -ssh 10.12.99.64 -l root -pw 9999
I'd like to input an "S" with a "-m" remote command file for this, etc...
MAIN MENU... (2 Replies)
I am trying to make a calculator. The user Enters number 1, chooses and operation, enters number 2, then chooses another operation or for the answer to be displayed.
eg. 1 + 1 = or 1 + 1 + 2 + 1 =
Both of these should be possible.
#!/bin/bash
read -p "what's the first number? " n1... (3 Replies)
Hi Guys,
Any good reference for me to perform user database update statement on table which has quite number of fields could be updated depend on user specified column name and the value to assign.
All the approaches are welcome and appreciated.
Thanks. (1 Reply)
Hi All,
I have a menu driven scripts. As you know while running the script we have to input the option such as 1,2, and 3 to execute function accordingly. but after selecting the input we have to press Enter.
My requirement is to execute function as soon as we press the option.
Is there... (5 Replies)
Hi!
I am looking to build dynamic menu (named: lookup.sh) that reads a pipe delimited file for input.
for example, contents of input.txt could be:
user1|srv1
user3|srv1
user4|srv1
user2|srv2
I want the menu look like:
1) get password for user1 on srv1
2) get password for user3 on... (7 Replies)
A lot of my scripting makes use of the 'select' command to create menu driven input. A typical example of how I use it is as:
somevar=''
PS3='Select one: '
while ]; do
select somevar in $(sqlplus -s $dbuser/$dbpw@mydb <<EOF
set echo off feedback off verify off... (7 Replies)
Can anyone offer any advice on how to modify the script below to work on a new system we have, that has no graphics capability? We admin the system through a serial RAS device. I've tried running the below script through the RAS and through an ssh -X session. It failed with something like "GTK... (3 Replies)