1834347 Members
2050 Online
110066 Solutions
New Discussion

Few Queries......

 
IT_4
New Member

Few Queries......

Dear all,

1.How can I restart a process without kill
the same?

2.How can I create a 50Mb file using
single command?

3. What is the Architectural difference
between a PA-Risc(800 series)
server& Workstation(700 series) having
the same Processor & O.S?

4. How to see the no.of files opened by a
Process?
Bank Muscat
4 REPLIES 4
Tom Geudens
Honored Contributor

Re: Few Queries......

1. That depends. A lot of processes trap the kill -HUP and reread their configuration. But it depends on the "traps" in the process/script.

2. Take a look at "man dd". Take a larger file and dd it to your file with the count option.

3. ??? I know there are less slots, that performance is a lot less ... but the actual difference ... can't help you there

4. Take a look at lsof. You can find this excelent software (for free) at http://hpux.tn.tudelft.nl/

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Chris Wilshaw
Honored Contributor

Re: Few Queries......

If you just want a blank file, you can use


prealloc 52428800
Leif Halvarsson_2
Honored Contributor

Re: Few Queries......

Hi

A workstation has only 1 or 2 processors, a server can have many. If you look at those large servers there can be a lot of differences (for example memory handling, hardware partitions etc.).

But if you compare a workstation with a small (1-2 processor) server they are rather similar. For example you can use a workstation as a workgroup server.
Some differences:
A workstaton has grapich hardware, most servers not (and there is no need for graphic software in the server OS).
A server has perhaps better I/O performance and better redundancy.

Some vendors (for example Sun) can sell the same hardware as a small server or a workstation.

Michael Tully
Honored Contributor

Re: Few Queries......

As mentioned a kill -HUP will re-read a process config file if it has one, and of course the program must have the ability to do so.
An example of this is the 'inetd' daemon. It has a config file called /etc/inetd.conf, and the daemon program has the ability to do a kill -HUP, or in this case, an 'inetd -c'

You can create a file using the 'prealloc' command. Consult the man page on sizing.

System hardware, start here. There a number of differences.
http://www.docs.hp.com/hpux/hw/index.html

The perfect tool for looking at what files are open per process is 'lsof' You can find information on it and a downloadable depot copy from HP's porting centre. Here is the link. http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/
Anyone for a Mutiny ?