file_cnt=`ls $in_dir/$file_name | wc -l` not working
Hi All,
I have to read in_dir and file_name values from a file and should check the count
For some instance lets say
in_dir hold /int/inbound
file_name hold EMP*.dat
below is one of lines in my shell script and we use AIX
even if some files(EMP001.dat, EMP002.dat) exist with that name, it is not giving expected result if, is it because the values i read from file are considered as common text.
Please let us know how to handle this, i need to count all the files with EMP<any>.dat
Hello,
I have X4500 running Solaris 10. I can access it through CLI but I cannot see the GUI. When I reboot it, the GUI works till all the files are loaded (ie., the initial boot sequence) and it prompts me to enter username and password and there it ends. The screen just has a blinking cursor... (4 Replies)
Dear all,
I am totally despaired and puzzled.
Using Filezilla under Windows under the same network as our Linux servers is working. Using FTP command-line client under any of our Linux debian servers is not working ! I tried with different FTP servers -> same problem !
All commands are... (12 Replies)
Hi,
Putting across a few awk expressions.
Apart from the last, all of them are working.
echo a/b/c | awk -F'/b/c$' '{print $1}'
a
echo a/b/c++ | awk -F'/b/c++' '{print $1}'
a
echo a/b/c++ | awk -F'/b/c++$' '{print $1}'
a/b/c++
Request thoughts on why putting a '$' post double ++... (12 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Hi All,
im hav one requirement, let me explain my requirement.
my script will run every one hour and it wil pull files from remote server to my local server.but the d files hwich are pulled my not be in required format wht im expecting in my server.
but in my sever in particular dierectory i... (7 Replies)
Hi Team
we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network.
Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
I have two files
file1.txt
A.txt
file2.txt
B.txt
Send email to end users as filename as heading and content
example:
email should be like these
file1
A.txt (3 Replies)
I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below.
. ~/.bash_profile
pbrun /bin/su - content
c h 1
hpsvn up file path
I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Hello, Newbie here,
I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40)
I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Hi Team,
I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system.
df -h | awk -v host=`hostname` '
BEGIN {
print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
LEARN ABOUT SUSE
gtk2::printsettings
Gtk2::PrintSettings(3) User Contributed Perl Documentation Gtk2::PrintSettings(3)NAME
Gtk2::PrintSettings
HIERARCHY
Glib::Object
+----Gtk2::PrintSettings
METHODS
printsettings = Gtk2::PrintSettings->new
printsettings = Gtk2::PrintSettings->new_from_file ($file_name)
o $file_name (localized file name)
May croak with a Glib::Error in $@ on failure.
Since: gtk+ 2.12
printsettings = Gtk2::PrintSettings->new_from_key_file ($key_file, $group_name)
o $key_file (Glib::KeyFile)
o $group_name (string or undef)
May croak with a Glib::Error in $@ on failure.
Since: gtk+ 2.12
$settings->foreach ($func, $data=undef)
o $func (scalar)
o $data (scalar)
string or undef = $settings->get ($key)
o $key (string)
$settings->set ($key, $value)
o $key (string)
o $value (string or undef)
boolean = $settings->has_key ($key)
o $key (string)
$settings->load_file ($file_name)
o $file_name (string)
May croak with a Glib::Error in $@ on failure.
Since: gtk+ 2.14
$settings->load_key_file ($key_file, $group_name)
o $key_file (Glib::KeyFile)
o $group_name (string or undef)
May croak with a Glib::Error in $@ on failure.
Since: gtk+ 2.14
double = $settings->get_printer_lpi
Since: gtk+ 2.16
$settings->set_printer_lpi ($lpi)
o $lpi (double)
Since: gtk+ 2.16
integer = $settings->get_resolution_x
Since: gtk+ 2.16
$settings->set_resolution_xy ($resolution_x, $resolution_y)
o $resolution_x (integer)
o $resolution_y (integer)
Since: gtk+ 2.16
integer = $settings->get_resolution_y
Since: gtk+ 2.16
$settings->to_file ($file_name)
o $file_name (localized file name)
May croak with a Glib::Error in $@ on failure.
Since: gtk+ 2.12
$settings->to_key_file ($key_file, $group_name)
o $key_file (Glib::KeyFile)
o $group_name (string or undef)
Since: gtk+ 2.12
$settings->unset ($key)
o $key (string)
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::PrintSettings(3)