9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
This morning there was an app that caused a sudden spike in I/O and memory usage in the server. We found the reason for the I/O, however the memory spike was something new, as it had never happened before.
I figured out what caused the memory spike, however, how do I investigate why... (6 Replies)
Discussion started by: anaigini45
6 Replies
2. UNIX for Beginners Questions & Answers
Trying to use mv in a shell script but for some reason this does not work:
for f in *.wav;do mv $f $f.bwf;done
I get this:
usage: mv source target
mv source ... directory
So it's like I'm using 'mv' wrong but I can't see how.
This works so the contens of the folder is read... (4 Replies)
Discussion started by: Oortone
4 Replies
3. Shell Programming and Scripting
Hi everyone,
i have the following script.sh:
foo='lsusb | grep Webcam | cut -c16-18'
sudo /home/user/public/usbreset /dev/bus/usb/001/$foo
when i try to call this script from python using subprocess.call("script.sh", shell=True) it seems that only 'sudo /home/user/public/usbreset' is being... (6 Replies)
Discussion started by: hilfemir
6 Replies
4. Solaris
Hi,
There is a abrupt memory rise observed for a process on solaris.
When the process is started the memory is around 268 MB and is stable for a day. Then suddenly the memory increased to 4364 MB.
Below is the pmap -xs output for the process (only for heap)
Address Kbytes ... (1 Reply)
Discussion started by: Nidds
1 Replies
5. UNIX and Linux Applications
Hello All,
I am using gvim ( redhat linux machine). backspace doesnot work properly. can some boby suggest a solution ?
i have checked with older version. backspace works in it.
Thanks
Shiv (1 Reply)
Discussion started by: shiv.emf
1 Replies
6. Shell Programming and Scripting
Hi,
I have a script which does a tar and sends it to another server as backup.
Script is as below
# Locations to be backed up. Seperate by space
BACKUP_LOCATIONS=/repos/subversion
BACKUP_BASE_FOLDER=/bakpool
BACKUP_FILE_NAME_ROOT=svn-backup
START_TIME_DISP=`date`
START_TIME=`date... (11 Replies)
Discussion started by: digitalrg
11 Replies
7. Solaris
Hi to all!
I want to learn step by step easily how to configure my Solaris for network. I know alot about Solaris Network configuration. But I have some problems.
When I install Solaris, and I plug-in my network cable to Solaris. Then I run:
ifconfig -a plumb
then I do
ifconfig bge0 dhcp... (7 Replies)
Discussion started by: SecureXCode
7 Replies
8. 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
9. UNIX for Dummies Questions & Answers
Hi,
I am new to UNIX and I am more used to simple commands like those in VMS.
One of them is the ability to get the output from a job using the /out=<file> command in VMS.
I want to submit a job (a set of unix commands) using the AT command but to get the output in a file like that used in... (4 Replies)
Discussion started by: SpanishPassion
4 Replies
REALHOSTNAME_SA(3) BSD Library Functions Manual REALHOSTNAME_SA(3)
NAME
realhostname_sa -- convert a struct sockaddr to the real host name
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <sys/types.h>
#include <netinet/in.h>
#include <libutil.h>
int
realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen);
DESCRIPTION
The function realhostname_sa() converts addr to the corresponding host name. This is done by resolving addr to a host name and then ensuring
that the host name resolves back to addr.
host must point to a buffer of at least hsize bytes, and will always be written to by this function.
If the name resolution does not work both ways or if the host name is longer than hsize bytes, getnameinfo(3) with NI_NUMERICHOST specified,
is used to convert addr to an ASCII form.
If the string written to host is hsize bytes long, host will not be NUL terminated.
RETURN VALUES
The realhostname_sa() function will return one of the following constants which are defined in <libutil.h>:
HOSTNAME_FOUND
A valid host name was found.
HOSTNAME_INCORRECTNAME
A host name was found, but it did not resolve back to the passed ip. host now contains the numeric value of ip.
HOSTNAME_INVALIDADDR
ip could not be resolved. host now contains the numeric value of ip.
HOSTNAME_INVALIDNAME
A host name was found, but it could not be resolved back to any ip number. host now contains the numeric value of ip.
SEE ALSO
getaddrinfo(3), getnameinfo(3), realhostname(3)
BSD
January 11, 2000 BSD