09-26-2008
Thanks,
i also did the same thing.
Do you have any idea? can it be done without SUDO ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have created a main menu in the following way:
while true; do
echo " "
echo "Main Menu: "
echo "Please Select An Option Using The Options Provided."
echo " "
echo "1 - Search All Files"
echo " "
echo "2 - Search Individual Files"
echo " "
... (1 Reply)
Discussion started by: amatuer_lee_3
1 Replies
2. Shell Programming and Scripting
I am attempting to create a shell script with the following capaciblities:
1. Listed options to choice from
2. Use to perform awk statements
3. Print a report with the awk results
My questions are
1. How do I select more than one file for option #5 and #6
2. How to I create an... (11 Replies)
Discussion started by: jroberson
11 Replies
3. Shell Programming and Scripting
Can someone show me how to create a menu? I want a script someone who is not unix literate can use, with some simple commands like ls -al a directory or find files based on a date, does anyone know how to make a simple menu ? Thanks. (4 Replies)
Discussion started by: taekwondo
4 Replies
4. SuSE
QUESTION:
Write shell script using menu-driven approach to show various system configuration like
1) Currently logged user and his logname
2) Your current shell
3) Your home directory
4) Your current path setting
5) Your current working directory
6) Show Currently logged number of... (1 Reply)
Discussion started by: bboyjervis
1 Replies
5. UNIX for Dummies Questions & Answers
i'm confused what this means.
i was asked to design a menu or command line option driven script that reads out of a DB and displays info such as
read_data.pl -u <user> -e <event>
which would print commands run by <user>with the <event> in the db.
any suggestions? i've been using... (2 Replies)
Discussion started by: kpddong
2 Replies
6. Emergency UNIX and Linux Support
Hi guys.
I have installed Acronis disk director in windows XP and allocate some free space to install Debian beside fedora.
after completion i rebooted and now grub is in command line mode and does not show the menu list.
(I didn't remove the fedora partition. I just allocate some space from... (1 Reply)
Discussion started by: majid.merkava
1 Replies
7. Ubuntu
hey all,
I already installed nautilus-actions
now , I want to add "print path" script(option) to the right context menu!..
I did :
http://img853.imageshack.us/img853/6973/59818245.png
http://img847.imageshack.us/img847/8758/37217230.png
the script print located in... (2 Replies)
Discussion started by: eawedat
2 Replies
8. Shell Programming and Scripting
Hello,
I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file.
For example;-
In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies
9. Shell Programming and Scripting
Hi All,
I have written a menu driven bash shell script.
Current Output is as below:
-------------------------------------
Main Menu
-------------------------------------
Option 1
Option 2
Option 3
Option 4
Exit
=====================================
Enter your... (3 Replies)
Discussion started by: kiran_j
3 Replies
10. Shell Programming and Scripting
Here is my script for the menu options.
# Bash Menu Script Example
PS3='Please enter your choice: '
options=("Option 1:" "Option 2:" "Other Reason:" "Quit")
select opt in "${options}"
do
case $opt in
"Option 1 :")
echo "you chose choice 1"
;;
... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT DEBIAN
check::isa
Check::ISA(3pm) User Contributed Perl Documentation Check::ISA(3pm)
NAME
Check::ISA - DWIM, correct checking of an object's class
SYNOPSIS
use Check::ISA;
if ( obj($foo, "SomeClass") ) {
$foo->some_method;
}
# instead of one of these methods:
UNIVERSAL::isa($foo, "SomeClass") # WRONG
ref $obj eq "SomeClass"; # VERY WRONG
$foo->isa("SomeClass") # May die
local $@; eval { $foo->isa("SomeClass") } # too long
DESCRIPTION
This module provides several functions to assist in testing whether a value is an object, and if so asking about its class.
FUNCTIONS
obj $thing, [ $class ]
This function tests if $thing is an object.
If $class is provided, it also tests tests whether "$thing->isa($class)".
$thing is considered an object if it's blessed, or if it's a "GLOB" with a valid "IO" slot (the "IO" slot contains a FileHandle object
which is the actual invocant). This corresponds directly to "gv_fetchmethod".
obj_does $thing, [ $class_or_role ]
Just like "obj" but uses "DOES" in UNIVERSAL instead of "isa" in UNIVERSAL.
"DOES" in UNIVERSAL is just like "isa", except it's use is encouraged to query about an interface, as opposed to the object structure.
If "DOES" is not overridden by th ebject, calling it is semantically identical to calling "isa".
This is probably reccomended over "obj" for interoperability, but can be slower on Perls before 5.10.
Note that "DOES" in UNIVERSAL
inv $thing, [ $class_or_role ]
Just like "obj_does", but also returns true for classes.
Note that this method is slower, but is supposed to return true for any value you can call methods on (class, object, filehandle, etc).
Look into autobox if you would like to be able to call methods on all values.
obj_can $thing, $method
inv_can $thing, $method
Checks if $thing is an object or class, and calls "can" on $thing if appropriate.
SEE ALSO
UNIVERSAL, Params::Util, autobox, Moose, asa
VERSION CONTROL
This module is maintained using Darcs. You can get the latest version from <http://nothingmuch.woobling.org/code>, and use "darcs send" to
commit changes.
AUTHOR
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT
Copyright (c) 2008 Yuval Kogman. All rights reserved
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2008-07-25 Check::ISA(3pm)