Before jumping off the deep end into a quagmire, do this on HP UX:
prof will give you a display of where your program's functions are spending time.
By the way, -p links a few monitoring functions into your code, so don't think something is broken whn you see them in your display.
Go from there, don't just guess that setbuf() is the problem - unless you called setbuf() to turn off buffering completely.
Hello there,
I have the following mission for my internship:
- Take an existing program which uses OpenGL writen in Delphi, for Windows.
- Write this program in C++ for all operating systems from which the name end on a "X"
So, what kind of features does this program need.
- There... (1 Reply)
Hi everyone,
I need to be able to write into a ksh script, a function that can look at 2 24 hour time variables and work out the difference between them.
e.g
job1 runs at 21:00
job2 runs at 01:00
diff = 04:00 hours
I would also need negative numbers i.e where job1 runs after job2
... (1 Reply)
A thanks to all ahead of time.
I've checked previous posts about this subject and can't find any that quite fit what I need. If I've missed the post could you point me there.
When I do an ls -al I get the following output:
-rw-r--r-- 1 staff staff 855 July 24 20:05 ... (4 Replies)
:rolleyes: Hi,
How to take the time diffence between start and finish time from a log file?
It is like
..... started at Jun 20 23:20
.
.
..... finished at Jun 21 01:40
Tryed so many ways but failed to ger exact way. :confused:
Your help will be honoured.
Ta........Lokesha (1 Reply)
Sorry if this is a stupid question!
I have been developing a Java application that I am deploying on both Unix and Linux servers, which uses lots of socket handling. When the server side connection is dropped by the server un-gracefully I have been seeing close_waits and null connections.
... (0 Replies)
I am sure this question has been asked and answered before, also, if it is the wrong catergory, please let me know.
I would like to know how, if possible to run Unix/Linux as my operating system, and then load XP as a program? (I am open to other operating systems, but it has to be able to... (3 Replies)
I wondered if someone could point out the differences between the time commmand and usr/bin/time and the accuracy one might have over another.
Also, is there a website or two a person could maybe link for me to describe the differences?
Thank you for your time. (2 Replies)
hi all,
can any one plz tell me that what is the difference between linux shell scripting and unix shell scripting.
is there any difference at all?? if yes that what are the differences and how could it be combatted
thanks in advance (1 Reply)
Discussion started by: nasir_khan
1 Replies
LEARN ABOUT CENTOS
linux32
SETARCH(8) System Administration SETARCH(8)NAME
setarch - change reported architecture in new program environment and set personality flags
SYNOPSIS
setarch <arch> [options] [program [arguments]]
arch [options] [program [arguments]]
DESCRIPTION
setarch This utility currently only affects the output of uname -m. For example, on an AMD64 system, running 'setarch i386 program' will
cause 'program' to see i686 (or other relevant arch) instead of x86_64 as machine type. It also allows to set various personality options.
The default program is /bin/sh.
OPTIONS -v, --verbose
Be verbose.
-h, --help
Display help (it is also displayed when setarch takes no arguments).
-V, --version
Output version information and exit.
--uname-2.6
Causes the program to see a kernel version number beginning with 2.6.
-3, --3gb
Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB).
--4gb Ignored (for backward compatibility only).
--list List architectures that can be set.
-B, --32bit
Turns on ADDR_LIMIT_32BIT.
-F, --fdpic-funcptrs
Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS).
-I, --short-inode
Turns on SHORT_INODE.
-L, --addr-compat-layout
Changes the way virtual memory is allocated (turns on the ADDR_COMPAT_LAYOUT).
-R, --addr-no-randomize
Disables randomization of the virtual address space (turns on ADDR_NO_RANDOMIZE).
-S, --whole-seconds
Turns on WHOLE_SECONDS.
-T, --sticky-timeouts
Turns on STICKY_TIMEOUTS.
-X, --read-implies-exec
Turns on READ_IMPLIES_EXEC.
-Z, --mmap-page-zero
Turns on MMAP_PAGE_ZERO.
EXAMPLES
setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
AUTHOR
Elliot Lee <sopwith@redhat.com>
Jindrich Novy <jnovy@redhat.com>
AVAILABILITY
The setarch command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils
/util-linux/>.
util-linux September 2011 SETARCH(8)