The AppName may be TCS/HCL/SCB.
For All the above 3 i ill have exported TCSDIR/HCLDIR/SCBDIR in .profile with some path.
i'm cnstruct the path in script and trying to cd $VARIABLE, it shows "not found".
hi all ,
i wanted to know if someone knows how can i use
a variable inside another variable
e.g.
#!/bin/csh
foreach test(1 2 3)
set sta_$test = "2"
##now its the problem i want to echo the new var
#$sta_$test , each time with anothe num ($test = 1... (2 Replies)
I am using variable to give the location of the file I am using but I get error.
Here is the code:
LogFile=/tmp/log.email
echo -e "could not close the service - error number $error \n" > $LogFile
well this is not all the code but is enough because the problem start when I try to use the... (3 Replies)
Hi folks,
I am facing problem when I concat variables with the string.
Value for 'JDBC_CLASSES' variable looks malformed (/classes12.zip2.0KAGES)
But, my expected result for 'JDBC_CLASSES' is
/opt/API-R111/PACKAGES/jdbc/ORACLE9.2.0/classes12.zip
Am I missing anything here?
My... (10 Replies)
Hi all!
I know that environment variables can be set on the .bashrc file, but I need to set them from a sh script. I saw a lot of websites that teach this but it doesn't work for me.
#!/bin/sh
DEKTOP=$DESKTOP=:/home/rrodrigues/Desktop
export DESKTOP
if I do echo $DESKTOP returns me... (10 Replies)
can someone please explain to me what i'm doing wrong with this code:
WELT=$(awk '(($1 ~ "^${caag}$") || ($2 ~ "^${caag}$"))' /tmp/Compare.TEXT)
when run from the command line, it works. but it seems to be having a problem doing the comparison when variables are involved.
i tested from... (1 Reply)
hi,
i have a shell script which calls another shell which in turn calls another shell script.
Main_shell_script.sh
echo "In Main_shell_script.sh"
FILENAME="original.txt" # LINE 1
DST_FILENAME=$FILENAME # LINE 2
echo "FILENAME = {$FILENAME}"
echo "DST_FILENAME =... (3 Replies)
Hi All,
i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way??
#!/bin/ksh
##script is sample.ksh
age=$1
gender=$2
class=$3
.
.
.... (3 Replies)
From the command line:
dions-air:scripts dion$ ls -l /Users/dion/Library/Application\ Support/Garmin/Devices/3816821036/History/2014-06-07-055251.TCX
-rw-r--r-- 1 dion staff 157934 7 Jun 06:55 /Users/dion/Library/Application Support/Garmin/Devices/3816821036/History/2014-06-07-055251.TCXworks... (2 Replies)
Discussion started by: dionbl
2 Replies
LEARN ABOUT SUSE
gtk2::treeselection
Gtk2::TreeSelection(3) User Contributed Perl Documentation Gtk2::TreeSelection(3)NAME
Gtk2::TreeSelection
HIERARCHY
Glib::Object
+----Gtk2::TreeSelection
METHODS
integer = $selection->count_selected_rows
boolean = $selection->iter_is_selected ($iter)
o $iter (Gtk2::TreeIter)
selectionmode = $selection->get_mode
$selection->set_mode ($type)
o $type (Gtk2::SelectionMode)
boolean = $selection->path_is_selected ($path)
o $path (Gtk2::TreePath)
$selection->select_all
$selection->set_select_function ($func, $data=undef)
o $func (scalar)
o $data (scalar)
$selection->select_iter ($iter)
o $iter (Gtk2::TreeIter)
$selection->select_path ($path)
o $path (Gtk2::TreePath)
$selection->select_range ($start_path, $end_path)
o $start_path (Gtk2::TreePath)
o $end_path (Gtk2::TreePath)
$selection->selected_foreach ($func, $data=undef)
o $func (subroutine)
o $data (scalar)
Call $func on every selected row in $selection's view.
iter = $tree_selection->get_selected
(model, iter) = $tree_selection->get_selected
Since most of the time you are only interested in the iter, "get_selected" returns only the iter in scalar context.
@paths = $selection->get_selected_rows
Returns the Gtk2::TreePath of each selected row, or an empty list if no rows are selected. The model is not returned, as documented in the
C API reference. To get the model, try "$selection->get_tree_view->get_model".
treeview = $selection->get_tree_view
$selection->unselect_all
$selection->unselect_iter ($iter)
o $iter (Gtk2::TreeIter)
$selection->unselect_path ($path)
o $path (Gtk2::TreePath)
$selection->unselect_range ($start_path, $end_path)
o $start_path (Gtk2::TreePath)
o $end_path (Gtk2::TreePath)
Since: gtk+ 2.2
scalar = $selection->get_user_data
SIGNALS
changed (Gtk2::TreeSelection)
ENUMS AND FLAGS
enum Gtk2::SelectionMode
o 'none' / 'GTK_SELECTION_NONE'
o 'single' / 'GTK_SELECTION_SINGLE'
o 'browse' / 'GTK_SELECTION_BROWSE'
o 'multiple' / 'GTK_SELECTION_MULTIPLE'
o 'extended' / 'GTK_SELECTION_EXTENDED'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::TreeSelection(3)