/dev/null should not be a regular file. Look at
output on your working server. Then remove /dev/null on this server and use mknod to recreate /dev/null as a character special file with the same major and minor device numbers as /dev/null on your working server. (The rm and mknod will need to be done with appropriate privileges.)
PS The file mode is also wrong. /dev/null should be mode 666 not 644.
Last edited by Don Cragun; 10-26-2013 at 12:18 AM..
Reason: Add note on permissions.
This User Gave Thanks to Don Cragun For This Post:
I'm a newbie to the Unix world Help!
I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)
Hi...all
database - 10g Rs 2 with ASM
platform - Sun Solaris V890 64bit
This is the step i use to auto start the database n ASM: (auto start can start but need to kill lsvcrun first)
1 dbora---script
2 start_shutdown_asm.ksh---script
3. Dbora file must be put under /etc/init.d directory... (0 Replies)
i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four.
When the script starts up i want it to:
call and run shellscripta
call and run shellscriptb
sleep for about 40 seconds
again run shellscripta
again run shellscriptb
check... (4 Replies)
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
Hello All,
I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform.
The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Hi,
I need to create a shell script for automated server patching, with the following scenario:
I have two Linux servers Primary and secondary.
Server patching should start on Primary 1st and then secondary.
1st check both servers are up and running.
Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies
LEARN ABOUT HPUX
mknod
mknod(5) File Formats Manual mknod(5)NAME
mknod.h - header file of macros for handling device numbers
SYNOPSIS DESCRIPTION
The header file defines macros to create and interpret device identification numbers for use with the system call (see mknod(2)).
The use of these macros is architecture-dependent. See the System Administration Manual for your system for information on how to select
major and minor device numbers.
contains the macro
which packs the major and minor components into a device identification number suitable for the dev argument of and the two macros:
which extract the major and minor number components, respectively, from a device identification number, dev.
The macro is a specification (see printf(3S)) that prints the minor number in the format best suited to the particular implementation; it
is used by the long format of the command (see ls(1)) to show the minor numbers for device files.
The base of the number is indicated in the same way as in the C programming language: no leading zero for decimal, leading zero for octal,
and leading for hexadecimal.
SEE ALSO ls(1), mknod(1M), mknod(2), printf(3S).
mknod(5)