09-15-2010
I added #undef _INCLUDE__STDC_A1_SOURCE at the beginning of my test program, changed the third
argument from wchar_t* to char*, and it worked.
Still, I wonder if it's the right path to choose, since I'm not sure what other
effects this #undef might have...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. Shell Programming and Scripting
Hello
I' m confused a bit.
I want to replace string "&" with "&" using this command.
sed 's/&/&/g'
and it doesn't work. Nothing happens.
On the other side this works:
sed 's/&/@/g'
or sed 's/&/^/g' !!!
Can somebody help please?
Thanks (3 Replies)
Discussion started by: billy5
3 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: cheongww
2 Replies
4. HP-UX
As per the man page, pstat_getdisk() call returns the number of instances, which could be 0 upon successful completion, otherwise a value of -1 is returned.
Please have a look at this sample program ->
#include <stdio.h>
#include <sys/pstat.h>
int main()
{
int j = 0, ret;
struct... (2 Replies)
Discussion started by: sandiworld
2 Replies
5. UNIX for Dummies Questions & Answers
hi
I wrote the following makefile, I have just one problem, when i type make clean I get the message make 'clean' is up to date and any obj file is removed from my folder, what's wrong?
Thank you
CC = cc
all: es.o elaboration.o
$(CC) -o es es.o elaboration.o
elaboration.o:... (0 Replies)
Discussion started by: Puntino
0 Replies
6. Shell Programming and Scripting
If there exists a field in stdin, print it, otherwise, print hello.....
These print nothing:
cat /dev/null | awk '{if ( length > 0 ) print $1; else print "hello"}'
cat /dev/null | awk '{if ( $1 ) print $1; else print "hello"}'But the scripts work if I run them directly in a terminal:
... (8 Replies)
Discussion started by: ksheller
8 Replies
7. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
8. Shell Programming and Scripting
greetings,
the following code isn't working as i expect it to. the first dbl brackets do but the second set gets ignored. ie: if i'm on t70c6n229 it echoes "Something" and i expect it not to. what am i missing?
if " ]] || " ]]; then
echo "Something"
fi
thanx! (9 Replies)
Discussion started by: crimso
9 Replies
9. HP-UX
I edited sudoers like this:vi /etc/sudoers
subex ALL =(root) NOPASSWD: /usr/ccs/bin/pstack
But the respective user still is prompted for password, and even when the right password is used, the command is still not launched.$sudo usr/ccs/bin/pstack 26557
We trust you have received the usual... (5 Replies)
Discussion started by: black_fender
5 Replies
10. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT DEBIAN
gtk2::itemfactory
Gtk2::ItemFactory(3pm) User Contributed Perl Documentation Gtk2::ItemFactory(3pm)
NAME
Gtk2::ItemFactory - wrapper for GtkItemFactory
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::ItemFactory
DEPRECATION WARNING
Gtk2::ItemFactory has been marked as deprecated, and should not be used in newly written code.
You should use Gtk2::UIManager instead of Gtk2::ItemFactory.
METHODS
itemfactory = Gtk2::ItemFactory->new ($container_type_package, $path, $accel_group=undef)
o $container_type_package (string)
o $path (string)
o $accel_group (Gtk2::AccelGroup or undef)
$ifactory->create_item ($entry_ref, $callback_data=undef)
o $entry_ref (scalar) GtkItemFactoryEntry
o $callback_data (scalar)
$ifactory->create_items ($callback_data, ...)
o $callback_data (scalar)
o ... (list) GtkItemFactoryEntry's
$ifactory->delete_entries (...)
o ... (list) GtkItemFactoryEntry's
$ifactory->delete_entry ($entry_ref)
o $entry_ref (scalar) GtkItemFactoryEntry
$ifactory->delete_item ($path)
o $path (string)
itemfactory or undef = Gtk2::ItemFactory->from_widget ($widget)
o $widget (Gtk2::Widget)
widget or undef = $ifactory->get_item_by_action ($action)
o $action (integer)
widget or undef = $ifactory->get_item ($path)
o $path (string)
string = Gtk2::ItemFactory->path_from_widget ($widget)
o $widget (Gtk2::Widget)
$ifactory->popup ($x, $y, $mouse_button, $time_, $popup_data=undef)
o $x (integer)
o $y (integer)
o $mouse_button (integer)
o $time_ (unsigned)
o $popup_data (scalar)
scalar = $ifactory->popup_data
scalar = Gtk2::ItemFactory->popup_data_from_widget ($widget)
o $widget (Gtk2::Widget)
$ifactory->set_translate_func ($func, $data=undef)
o $func (scalar)
o $data (scalar)
widget or undef = $ifactory->get_widget_by_action ($action)
o $action (integer)
widget or undef = $ifactory->get_widget ($path)
o $path (string)
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::ItemFactory(3pm)