03-30-2012
What precisely is it doing or not doing, that it's supposed to do, or not do? If the computer can't figure out what you want from the malfunctioning code, neither can we unfortunately. You'll have to say it.
Show the input you have, and the output that you want. I suspect there's more efficient ways to do this.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi , I write a script like this\ and put it under / (root) :
ref=88
df -k | grep /cbmdata/00/gdd | tr -d '%' | \
while read a b c d e other
do
if (( $e >= $ref ))
then
line=`find /cbmdata/00/gdd -name "LOGS*" |sort -nr |tail -1`
# echo $line
rm -f $line
fi
done
... (11 Replies)
Discussion started by: xramm
11 Replies
2. Shell Programming and Scripting
thi is (10 Replies)
Discussion started by: angelina
10 Replies
3. Solaris
Hello.
I am trying to run xclock on newly built solaris box - These are the steps I followed:
# DISPLAY=localhost:0.0
# export DISPLAY
# xclock
xclock: not found
# cd /usr/openwin/bin
# ./xclock
Error: Can't open display: localhost:0.0
#
Please suggest, what am i doing wrong?
Thank... (27 Replies)
Discussion started by: panchpan
27 Replies
4. AIX
Hi All,
I m not able to run at job with normal user on AIX system
os version is 5300-05-06.
I am able to run at job only with root user.
When I try to run at job with any other user I am getting error:
at: you are not authorized to use at. Sorry.
I checked at.deny file, it is... (4 Replies)
Discussion started by: pkatkade
4 Replies
5. AIX
Hi,
I am unable to run a simple C++ threaded program on the AIX 5.3 platform. It says
exec(): 0509-036 Cannot load program ./sendClient because of the following errors:
rtld: 0712-001 Symbol __pthread was referenced
from module sendClient(), but a runtime definition
of the... (6 Replies)
Discussion started by: asutoshch
6 Replies
6. HP-UX
Hi All,
I want to get %cpu and %memory utilization for a given process id in HP-UX so am using the following commands
1)TOP -p <PID> am getting error message like Quitting top: pset 26323 doesn't exist,but when am using only TOP command without any options its working fine.
2)ps -e -o pcpu... (5 Replies)
Discussion started by: Ramya_Nm
5 Replies
7. Shell Programming and Scripting
Hi,
I have a separate file with a ksh function in it. When I try to run it, I get an error about permissions:
user@~/scripts/functions$ ksh f_fill_testfunc
ksh: f_fill_testfunc: cannot open
user@~/scripts/functions$ ls -l batch_functions/f_fill_testfunc
-rwxr-xr-x 1 user user 1105 Aug... (18 Replies)
Discussion started by: Subbeh
18 Replies
8. Shell Programming and Scripting
Hello,
I am trying to create a ksh script to login to server and collect gather output of some command to troubleshoot some issue.
DATE=`date +%b.%d.%Y.%M.%H`
echo " Enter emp id to login to server"
read Eid
Eid=$Eid
echo " Enter hostname of the system"
read HOST
HOST=$HOST... (2 Replies)
Discussion started by: saurabh84g
2 Replies
9. UNIX for Dummies Questions & Answers
hello Don Cragun sir, i am not able to run this command
awk 'NR==FNR{if($0~/^>/){i=substr($0,2);getline};a=a $0;next}{print ">" $1 ORS substr(a, $2, $3-$2+1)}' file1 FS=\\t file2
i searched do text you on twitter, facebook but i get no reply from over there so i post here.
---------- Post... (2 Replies)
Discussion started by: harpreetmanku04
2 Replies
10. Red Hat
Hi
I have a system running cat etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo), and I am trying to check why is crashing a lot of times. I have checked the following files, but with no sucessfull results:
ls -lrt *.log
-rw-r--r--. 1 root root 29925 Dec 23 2015... (1 Reply)
Discussion started by: fretagi
1 Replies
FBB::mlm(3bobcat) OFoldStream manipulator FBB::mlm(3bobcat)
NAME
FBB::mlm - Manipulator modifying left margins of OFoldStream objects
SYNOPSIS
#include <bobcat/ofoldstream> or
#include <bobcat/ofoldstreambuf>
Linking option: -lbobcat
DESCRIPTION
The mlm class implements a manipulator that can be inserted into OFoldStream objects to modify the stream's left margin by a requested
amount. The request cannot result in a negative left margin value. If a negative left margin would be the arithmetic result of the request
then left margin 0 will silently be used.
Depending on the tab-setting of the OFoldStream the inserted value represents the number of blank space characters or the number of
tab-characters that will be added to the left margin.
The request will be processed at the next newline character or std::flush or std::endl manipulator that is inserted into the stream. If a
line is still empty once an mlm object and a flush manipulator are inserted into the stream then the new left margin will be effective at
the next word inserted into that line (cf., the example section below)
A bad_cast exception is thrown when the manipulator is inserted into an ostream that is not using a OFoldStreambuf buffer.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM
-
CONSTRUCTOR
o mlm(int addValue):
The standard copy constructor is available.
MEMBER FUNCTIONS
There are no public or protected member functions in this class.
EXAMPLE
#include <iostream>
#include <bobcat/ofoldstream>
using namespace std;
using namespace FBB;
int main()
{
OFoldStream out(cout, 0, 80);
out << "hello world (left margin is 0)" << mlm(4) << "
"
"this uses a 4 character wide left margin
" <<
mlm(-10) << flush <<
"left margin -6 changed to 0, active on this line
";
return 0;
}
FILES
bobcat/mlm - defines the class interface
SEE ALSO
bobcat(7), manipulators(3bobcat), lm(3bobcat), ofoldstream(3bobcat)
BUGS
None Reported.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::mlm(3bobcat)