Search Results

Search: Posts Made By: flagman5
3,601
Posted By flagman5
thanks for the workaround but is there an...
thanks for the workaround

but is there an actual single command?

what if the model came back to be a single field? say like this: System Configuration: Fujitsu sun4u Sun Fire V240, the...
3,601
Posted By flagman5
Command to get Vendor information on Solaris
Hello

I know that prtdiag and prtconf both give the Vendor information on the first line, something like this:
System Configuration: Oracle Corporation sun4u Sun Fire V240

But is there a...
Forum: Programming 12-11-2012
2,797
Posted By flagman5
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTAT...
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN4/0187____.HTM

this is really helpful too
Forum: Programming 12-06-2012
2,797
Posted By flagman5
Procps in Solaris
Hello All

I am trying to write my own "ps" function by reading the /proc folder and going through each PID folder and getting only a few specific information. On Linux this is easy as the...
5,664
Posted By flagman5
SunOS 5.10 Generic_144488-02 sun4u sparc...
SunOS 5.10 Generic_144488-02 sun4u sparc SUNW,Sun-Fire-280R

and

Linux 2.6.18-194.11.4.el5 #1 SMP Fri Sep 17 04:57:05 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

they could be running on...
5,664
Posted By flagman5
How to get current power consumption of a machine
Hi

Is there any native commands or somewhere in the /proc files to get the machine's power consumption? I googled for a while and cannot really find this information

Thanks for your help.
Forum: HP-UX 07-19-2012
6,351
Posted By flagman5
thanks but my script will be running across...
thanks but my script will be running across various HPUX systems, I don't think I have the ability to set the timezone per each system.

is there no universal numeric timezone offset in HPUX?
Forum: HP-UX 07-19-2012
6,351
Posted By flagman5
Getting numeric timezone on HP-UX
Hi

I thought the UNIX command date is universal and so I have been using

date +%z to get the numberic timezone offset (e.g. -0500)

however on HP-UX, this is not returning expected...
2,708
Posted By flagman5
thanks, only Linux is in scope for my script so I...
thanks, only Linux is in scope for my script so I am not worried about cross OS just yet.

well thanks for the quick reply....I guess its going to be a If, else unknown...
2,708
Posted By flagman5
Getting a process/program version from /proc folder
Hello

I am writing a script that will first execute ps to get the list of processes running, and the go into the /proc folder for each PID listed and gather relevant information.

I looked...
Forum: Programming 06-08-2012
6,636
Posted By flagman5
thanks, i removed it and it seems to bypass that...
thanks, i removed it and it seems to bypass that error. however many more came out and i guess i will slowly debug each of them.

just a side thing, i grabbed the code verbatim from Downloads: A...
Forum: Programming 06-08-2012
6,636
Posted By flagman5
yes, it is under the includes. any ideas?
yes, it is under the includes.

any ideas?
Forum: Programming 06-06-2012
6,636
Posted By flagman5
C++ Exception class missing?
Hi

I tried googling about it and I couldn't really find a solid answer. Why is the compiler missing the exception class when it seems to be a standard class?

The code is here:

//Rijndael.h...
Forum: Programming 05-23-2012
26,008
Posted By flagman5
Thank you so much, this is a great way to test. I...
Thank you so much, this is a great way to test. I shouldn't be using the HTTP/1.1\n at the end.
Forum: Programming 05-21-2012
26,008
Posted By flagman5
C++ http GET request using sockets
Hello

I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I...
Forum: Linux 05-15-2012
12,511
Posted By flagman5
hmm you are right, I wasn't being logical with my...
hmm you are right, I wasn't being logical with my testing.

if I have that line in, both a regular user and root have issues. (by line, i mean the code associated with using that variable as well,...
Forum: Linux 05-15-2012
12,511
Posted By flagman5
the file doesn't exist and I am trying to create...
the file doesn't exist and I am trying to create it. however, for the whole directory, the permissions are:

drwxr-xr-x 2 root root 4096 May 15 14:23 /var/lock/subsys



there are no more...
Forum: Linux 05-15-2012
12,511
Posted By flagman5
/var/lock/subsys permission denied for root
Hello

I have simple line of code here:

FILE *lockfp = fopen("/var/lock/subsys/processName", "w");


which is denied even running as root. The result is

locking failed for the following...
Forum: AIX 03-14-2012
9,670
Posted By flagman5
i found this patch bundle that has these two...
i found this patch bundle that has these two libraries, will install them to try.
https://www14.software.ibm.com/webapp/set2/sas/f/aix51fixes/ml9details.html...
Forum: AIX 03-14-2012
9,670
Posted By flagman5
Dependent modules libc.a and libpthreads.a
Hello

I am trying to install ActivePerl Pro Studio and I am seeing the following errors.


Could not load program ./setup:
Symbol resolution failed for setup because:
Symbol...
2,095
Posted By flagman5
Thanks for the replies. I took look at...
Thanks for the replies.

I took look at gangalia and it seems that they access kernel stats exposed via /proc or kstat. i guess this is as 'light' as possible without degrading performance.
2,095
Posted By flagman5
Getting CPU usage without any commands
Hello

Is there a way to get CPU usage on UNIX environments (SunOS, Linux, HP-UX, AIX) without executing any commands?

The reason I ask is because I am asked to research any potential methods...
6,185
Posted By flagman5
thanks for your help. its interesting that i was...
thanks for your help. its interesting that i was able to get it to partially work but i guess it makes sense that the behavior is unpredictable at best. i never had an issue where adding debug print...
6,185
Posted By flagman5
do you mean not use fcntl? you typed ioctl...?
do you mean not use fcntl? you typed ioctl...?
6,185
Posted By flagman5
File Locking with fcntl on Darwin Mac OSX
Hello

I have a Perl script that works on non-darwin Mac OS X environments and I think I have narrowed down the issue to a file locking problem.

In other linux environments, the flock struct...
Showing results 1 to 25 of 31

 
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy