Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are
1. The Control file name(.ctl file)
2. The Data file name(.csv file)
Does anybody have an idea about it? :confused: (3 Replies)
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
Hi Guys,
I am new to HP-UX system, can someone please let me know which file or what process is require to load all the devices when the system boot up. Currently I am having a few issue when starting the system it does not load all the device.
Cheers, (0 Replies)
i need to send a file to the ethernet card , thro DMA mode
i have an bus master ethernet card
soo how can i initiate the dma for the ethernet card???
and how do i load the file into memory
so tht i can directly give the address of the file to nic for DMA transfer
pls help :( :( (0 Replies)
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
is there a program out there that will put a memory load on my HP_ux 11.11 box. I need to stress mem/swap to setup memory thresholds for my monitoring software. I am using Nimbus to monitor memory and swap. glance is telling me that memory is never past 70 percent however nimbus will page out ... (1 Reply)
I have 300,000 folder and inside each folder i have N number of .csv files. Now the question is, i need to add the respective file name as one of the column in each file.
How to do it?
Thanka in advance
Ram (1 Reply)
Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections.
tail -f /var/log/httpd/access_log shows no activity
/var/log/messages ;... (1 Reply)
Hi,
Im going to use shell script for load the data into DB.
First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD).
In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies
LEARN ABOUT ULTRIX
dir
dir(5) File Formats Manual dir(5)Name
dir - format of directories
Syntax
#include <sys/types.h>
#include <sys/dir.h>
Description
A directory behaves exactly like an ordinary file, except that no user may write into a directory. The fact that a file is a directory is
indicated by a bit in the flag word of its i-node entry. For further information, see The structure of a directory entry is given in the
include file.
A directory consists of some number of blocks of DIRBLKSIZ bytes, where DIRBLKSIZ is chosen such that it can be transferred to disk in a
single atomic operation (for example, 512 bytes on most machines).
Each DIRBLKSIZ byte block contains some number of directory entry structures, which are of variable length. Each directory entry has a
struct direct at the front of it, containing its inode number, the length of the entry, and the length of the name contained in the entry.
These are followed by the name padded to a 4-byte boundary with null bytes. All names are guaranteed null terminated. The maximum length
of a name in a directory is MAXNAMLEN.
The macro DIRSIZ(dp) gives the amount of space required to represent a directory entry. Free space in a directory is represented by
entries which have dp->d_reclen > DIRSIZ(dp). All DIRBLKSIZ bytes in a directory block are claimed by the directory entries. This action
usually results in the last entry in a directory having a large
dp->d_reclen. When entries are deleted from a directory, the space is returned to the previous entry in the same directory block by
increasing its dp->d_reclen. If the first entry of directory block is free, then its dp->d_ino is set to 0. Entries other than the first
in a directory do not normally have dp->d_ino set to 0.
#ifdef KERNEL
#define DIRBLKSIZ DEV_BSIZE
#else
#define DIRBLKSIZ 512
#endif
#define MAXNAMLEN 255
The DIRSIZ macro gives the minimum record length that will hold the directory entry. This requires the amount of space in struct direct
without the d_name field, plus enough space for the name with a terminating null byte (dp->d_namlen+1), rounded up to a 4-byte boundary.
#undef DIRSIZ
#define DIRSIZ(dp)
((sizeof (struct direct) - (MAXNAMLEN+1)) +
(((dp)->d_namlen+1 + 3) &~ 3))
struct direct {
u_long d_ino;
short d_reclen;
short d_namlen;
char d_name[MAXNAMLEN + 1];
/* typically shorter */
};
struct _dirdesc {
int dd_fd;
long dd_loc;
long dd_size;
char dd_buf[DIRBLKSIZ];
};
By convention, the first two entries in each directory are for dot (.) and dot dot (..). The first is an entry for the directory itself.
The second is for the parent directory. The meaning of `..' is modified for the root directory of the master file system ("/"), where dot
dot has the same meaning as dot.
See Alsofs(5)dir(5)