which the cloud file looks like:
although it should print the prp_name as constructed above I get the following:
I couldn't fix the issue, would appreciate some help
Last edited by vbe; 01-05-2020 at 06:03 PM..
Reason: more code tags
I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong.
When I copy and paste it to the terminal, it is OK. Any idea what the problem might be?
set i = `grep -c #define flags.h`
while ($i>20)
@ i--
my func (`cat... (4 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Hi everyone,
I have a Linux OS in my PC (older version 9). Its default shell is bash. Whenever I try to run some Perl program it throws error ! eg, if I run this simple PERL program ,
#!/usr/bin/perl
printf "\lHello \n";
$var=3 ;
printf $var;
@list=(1,2,3);
printf "@list";... (6 Replies)
Hello,
Unfortunately I don't found any working solution for my problem :/
I have pass file for dovecot authorizing in this format:
user@domain.tld:{SSHA}Ykx2KVG/a2FKzjnctFFC2qFnrk9nvRmW:5000:5000::::
.
.
...Now, I want to write some sh script for password changing for grep'ed user, in... (5 Replies)
Hello all,
Something strange going on with a shell script I'm writing. It's trying to write a list of files that it finds in a given directory to another file. But I also have a skip list so matching files that are in that skip list should be, well uhm, skipped :)
Here's the code of my... (2 Replies)
Linux version : Oracle Linux 6.4
Shell : Bash
The following script will be run as root. During the execution, it should switch to oracle user and execute few commands.
After googling and searching within unix.com , I came up with the following syntax
## Enclosing all commands in double... (7 Replies)
Hello
I have a shell script that is run as root. Script rins ok until the point where it have to switch to user "mqm" to run other commands. It just hangs at the point of this line in the script
su - mqm -c "dspmq"
I ran the same commands at the terminal and they run fine.
Any thoughts. (6 Replies)
I have below code inside my awk script
if ( $0 ~ /SVC IN:/ )
{
svc_in=substr( $0,23 , 3);
if (msg_start == 1 && msg_end == 0)
{
msg_arr=$0;
}
}
else if ( $0 ~ /^SVC OUT:/ )
{
svc_out=substr( $0, 9, 3);
if (msg_start == 1 && msg_end == 0)
... (6 Replies)
Discussion started by: bhagya123
6 Replies
LEARN ABOUT SUSE
gtk2::treeiter
Gtk2::TreeIter(3) User Contributed Perl Documentation Gtk2::TreeIter(3)NAME
Gtk2::TreeIter
HIERARCHY
Glib::Boxed
+----Gtk2::TreeIter
SYNOPSIS
package MyCustomListStore;
use Glib::Object::Subclass
Glib::Object::,
interfaces => [ Gtk2::TreeModel:: ],
;
...
sub set {
my $list = shift;
my $iter = shift; # a Gtk2::TreeIter
# this method needs access to the internal representation
# of the iter, as the model implementation sees it:
my $arrayref = $iter->to_arrayref ($list->{stamp});
...
}
DESCRIPTION
The methods described here are only of use in custom Gtk2::TreeModel implementations; they are not safe to be used on generic iters or in
application code. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information.
METHODS
treeiter = Gtk2::TreeIter->new_from_arrayref ($sv_iter)
o $sv_iter (scalar)
Create a new Gtk2::TreeIter from the "internal" array reference representation used by custom Gtk2::TreeModel implementations. This is the
complement to Gtk2::TreeIter::to_arrayref(), and is used when you need to create and return a new iter from a method that is not one of the
Gtk2::TreeModelIface interface vfuncs. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information.
$iter->set ($from)
o $from (scalar)
Set the contents of $iter. $from can be either another Gtk2::TreeIter or an "internal" arrayref form as above.
Often you create a new iter instead of modifying an existing one, but "set" lets you to implement things in the style of the "remove"
method of Gtk2::ListStore and Gtk2::TreeStore.
A set can also explicitly invalidate an iter by zapping its stamp, so nobody can accidentally use it again.
$iter->set ([0,0,undef,undef]);
scalar = $iter->to_arrayref ($stamp)
o $stamp (integer)
Convert a boxed Gtk2::TreeIter reference into the "internal" array reference representation used by custom Gtk2::TreeModel implementations.
This is necessary when you need to get to the data inside your iters in methods which are not the vfuncs of the Gtk2::TreeModelIface
interface. The stamp must match; this protects the binding code from potential memory faults when attempting to convert an iter that
doesn't actually belong to your model. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information.
SEE ALSO
Gtk2, Glib::Boxed, Gtk2::TreeModel
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::TreeIter(3)