I need to know how to enter a unix path in a cgi script for a guest book:
example:
My URL is http://www.kitachi.info
I have an html file in the main folder on my site, the file is called :
gbook.html
what would the correct unix path for this file be ???
the part of the script... (1 Reply)
I know UNIX user level commands, shell scripts. But i have no idea about kernel level programming and networking. I know the terms semaphore,IPC,socket programming. But i don't know in details what are these. I need to know the following.
1. Unix kernel level programming.
2. Unix Internals.
3.... (4 Replies)
Hi All,
Can anyone please help me in unix command
Query:
====
File contains data along with date and time stamp like,
..
Date: 08:23:2005 01:00:00
method: xyz
init variables
Date 08:23:2005 01:00:01
method: xyz
finished init variable
.... (2 Replies)
Hi folks,
Hope you can help me. I have a process that is currently running at nice 20 and need it to run faster (-10?). How do I change the process using nice? I have the process number and thought it would be along the lines of;
nice -10 process_id
but it doesn't seem to like that. (1 Reply)
Hi,
In a file I have data like...
-rw-r----- 1 ftpuser users 1036695 Jul 6 14:59 ./APRIL 2007/Ujjain/My Disc (D)/9565DW07.04B
-rw-r----- 1 ftpuser users 124080 Jul 6 14:59 ./APRIL 2007/Vadodara/vad_APRIL07/2082DW07.04B
The above data is extracted using "find . -name... (12 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
I have a file 123.txt which is
aasaasas=1
bsasasasasa=2
sawqas=3
I want my output to be
1
2
3
I am new to scripting can some1 help me out. (14 Replies)
Hi All,
below script reads the perticular files from the directory. Am trying to fetch status and print them in the required format.
It needs to read line and search for string "Passed/Failed" and print them under correct sub header.
script :
BASE_DIR=/tmp/test/REPORT/CollectReport
#... (16 Replies)
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Discussion started by: Optimus81
2 Replies
LEARN ABOUT BSD
fstat
FSTAT(8) System Manager's Manual FSTAT(8)NAME
fstat - file status
SYNOPSIS
fstat [ -u user ] [ -p pid ] [ filename... ]
DESCRIPTION
Fstat identifies open files. A file is considered open if a process has it open, if it is the working directory for a process, or if it is
an active pure text file. If no options are specified, fstat reports on all open files.
Options:
-u Report all files open by a specified user.
-p Report all files open by a specified process id.
filename...
Restrict reports to the specified files. If the file is a block special file, fstat additionally reports on any open files on that
device, treating it as a mounted file system.
The following fields are printed
USER The username of the owner of the process.
CMD The command name of the process.
PID The process id.
FD The file number in the per-process open file table. The special names "text" and "wd" mean that the file is the pure text inode or
the working directory for the process. If the file number is followed by an asterick (*), then the file is not an inode, but either
a socket, fifo, or has an error of some kind. In this case the rest of the entry is variable format, doesn't correspond to the rest
of the headings, and is enclosed in parenthesis. The following paragraph describing sockets will explain the variable format.
DEVICE
Major minor number of the device this file exists on.
INODE The inode number of the file.
SIZE The size in bytes of the file.
TYPE The type of the file. (see sys/file.h)
Sockets The formating of open sockets depends on the protocol domain. In all cases the first field is the domain name, the second field is
the socket type (stream, dgram, etc), and the third is the socket flags field (in hex). The remaining fields are protocol dependent. For
tcp, it is the address of the tcpcb, and for udp, the inpcb (socket pcb). For unix domain sockets, its the address of the socket pcb and
the address of the connected pcb (if connected). Otherwise the protocol number and address of the socket itself are printed. The idea is
not to duplicate netstat, but to make available enough information for further analysis. For example, the addresses mentioned above are
the addresses which the "netstat -A" command would print for tcp, udp, and unixdomain. Note that since pipe(2) is implemented with sock-
ets, a pipe appears as a connected unix domain stream socket. A unidirectional unix domain socket indicates the direction of flow with an
arrow ("<-" or "->"), and a full duplex socket shows a double arrow ("<->").
BUGS
Socket information clutters the output.
Since fstat takes a snapshot of the system, it is only correct for a very short period of time.
SEE ALSO ps(1), pstat(8)4th Berkeley Distribution December 12, 1987 FSTAT(8)