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
tt_host_netfile_file(library call) tt_host_netfile_file(library call)
NAME
tt_host_netfile_file -- map between canonical and local pathnames on a remote host
SYNOPSIS
#include <Tt/tt_c.h>
char *tt_host_netfile_file(
const char *host,
const char *netfilename);
DESCRIPTION
The tt_host_netfile_file function performs a conversion equivalent to that of the tt_netfile_file(3) function, but performs it on a remote
host.
The host argument is the host on which the file resides. The netfilename argument is a copy of a null-terminated string returned by
tt_netfile_file(3) or tt_host_netfile_file(3).
RETURN VALUE
Upon successful completion, the tt_host_netfile_file function returns a freshly allocated null-terminated string of unspecified format,
which can be passed to tt_host_netfile_file(3); otherwise, it returns an error pointer. The application can use tt_ptr_error(3) to extract
one of the following Tt_status values from the returned pointer:
TT_ERR_DBAVAIL
The ToolTalk database server could not be reached on host, perhaps because the host is unavailable or cannot be reached through
the network.
TT_ERR_DBEXIST
The ToolTalk database server is not properly installed on host.
TT_ERR_NETFILE
The netfilename is not a valid netfilename.
TT_ERR_UNIMP
The ToolTalk database server contacted is of a version that does not support tt_host_netfile_file.
APPLICATION USAGE
The tt_file_netfile(3), tt_netfile_file(3), tt_host_file_netfile(3) and tt_host_netfile_file(3) functions allow an application to determine
a path valid on remote hosts, perhaps for purposes of constructing a command string valid for remote execution on that host. By composing
the two calls, paths for files not accessible from the current host can be constructed. For example, if path /sample/file is valid on host
A, a program running on host B can use
tt_host_netfile_file("C", tt_host_file_netfile("A", "/sample/file"))
to determine a path to the same file valid on host C, if such a path is possible.
Allocated strings should be freed using either tt_free(3) or tt_release(3).
The tt_open(3) function need not be called before tt_host_netfile_file.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_file_netfile(3), tt_netfile_file(3), tt_host_file_netfile(3), tt_open(3), tt_free(3), tt_release(3).
tt_host_netfile_file(library call)