I am sending a kill comand to kill a process inside a SH script but I don`t want the user to notice it so I donīt want the message "1222 killed" to appear.
I`ve tried to redirect the standard output to /dev/null 2>&1 and also tried to use "nohup" but none of them was succesfull.
Can anyone... (1 Reply)
I have some processes that show a long file path as part of the process name and the process name gets truncated off.
Does anyone know how to get the full output from the `ps`command so that I can see the whole process name? (9 Replies)
I have a variable that is a full path name and I just want the file name with out the extension. I have figured out how to do this using some temp files but I would really like to avoid that if possible.
I know I can do
echo ${TMPNAME%.*} to drop the extension is there a similar way to drop... (3 Replies)
Hi all ,
I am creating the file which holds the create query to run in the sql prompt:
so when i am creating:
create table XXX( SD Varchar2(10),
DF Varchar2(10),)
I am getting one comma at the last ,before i am inserting the closing bracket i need to delete that? kindly provide me the... (1 Reply)
Hi,
I have 2 queries
1 .when I run some unix command, I am getting the output of "time" at std output (screen)
for eg
zegrep <pattern> *.v.gz
I almost found the reason but not sure, if the no of files matching *.v.gz is more then I am getting the time command output at the... (5 Replies)
consider the small piece of code
while read line
do
echo $line
done < example
content of example file
sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr
the output is like
sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr
the... (4 Replies)
Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do? (4 Replies)
Legends,
I have 2 files f1 and f2. when i use nawk to compare the difference(subtraction) from 4th column of the file, it truncates the output.
can you please help to resolve this.
subtraction is (4th col of f1 - 4th col of f2). but it gives only below lines out of 116. I want to print all... (7 Replies)
I am new to shell scripting and wished to get few things clarified.
While calling functions within shell script, output comes out as single line irrespective of the no of echos or newlines I tried within function +
the echo -e used to invoke function ( as instructed online) :
#!/bin/sh
inc() {... (1 Reply)
Hello,
I'm writing an Awk script to take a command line argument (student's name) and output their relevant student#, name, and marks. For some reason, awk arbitrarily removes the first digit from the student number and doesn't show me the proper output.
Here is my code:
#! /usr/bin/awk -f... (6 Replies)
Discussion started by: trashmouth12
6 Replies
LEARN ABOUT OSF1
fasthalt
fasthalt(8) System Manager's Manual fasthalt(8)NAME
fasthalt - Halts the system
SYNOPSIS
/usr/sbin/fasthalt [-lnq]
DESCRIPTION
The fasthalt command halts the system and flags a subsequent reboot to skip the execution of fsck. The program creates the fastboot file,
then invokes the halt program. The system start-up script contains instructions to look for the fastboot file. If present, the script
removes the file and skips the invocation of the fsck command.
If the command is invoked without the -l, -n, or -q flag, the halt program logs the shutdown using the syslogd command and places a record
of the shutdown in the login accounting file, /var/adm/wtmp. Using the -q and the -n flags imply the -l flag.
You must have root privileges to use this command.
FLAGS
Does not log the halt using syslog. Prevents the sync before stopping, and does not log the halt using syslog. Causes a quick halt, does
not log the halt using syslog, and makes no attempt to kill all processes.
FILES
Specifies the command path Specifies the path of the syslog daemon
RELATED INFORMATION
Commands: fsck(8), halt(8), syslogd(8)
Functions: sync(2), syslog(3) delim off
fasthalt(8)