02-07-2017
Your program already shows output before it terminates. So I strongly suspect it's not actually what you're actually doing. You are running some other program, something which does not flush its output.
How to force it to flush its output, depends on what it is.
Please show what you're actually doing, word for word, letter for letter, keystroke for keystroke.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to redirect the grep output into the variable
but i am not able to get it
i tried
veri=`grep -i $1 "${logdir}"* | grep -i adding | grep -iv equation | tail -1 | cut -d ':' -f 1`
vari=$(grep -i $1 "${logdir}"* | grep -i adding | grep -iv equation | tail -1 | cut -d ':' -f 1)
BUT NOT... (1 Reply)
Discussion started by: mail2sant
1 Replies
2. Shell Programming and Scripting
Hi,
I am writing the following code in command prompt it is working fine.
grep ',222,' SAPPCO_20080306.CSV_old > SAPPCO_20080306.CSV_new
But the command is not working in the Shell Script...
##########################################
#!/bin/sh
#... (2 Replies)
Discussion started by: hanu_oracle
2 Replies
3. Shell Programming and Scripting
hi,
i wat to get the output of a grep command in a file. but when i am trying out the same grep command in the unix prompt its working fine.. i am getting the output properly.. but when i am writing the same command inside my shell script , its just creating a new output file with no contents... (11 Replies)
Discussion started by: kripssmart
11 Replies
4. Shell Programming and Scripting
Hi,
I have a process running in the background, which throws up some output to the terminal when I run my script. How can I read this output from my script?
Thank you. (5 Replies)
Discussion started by: Theju
5 Replies
5. Shell Programming and Scripting
Hi all
i'm new in KSH,
i want to write a script to grep a logs files and redirecting the result into a relative subdirectory/file.txt that must be created near to each log file
my begin script is :
find ./logs -type f -name "*.log" -exec grep error {} \;
how i can perform that modest... (10 Replies)
Discussion started by: rambler
10 Replies
6. UNIX and Linux Applications
Hi Everyone,
Can anyone please tell me, how can I redirect the grep command output to same file. I am trying with below command but my original file contains no data after executing the command.
$grep pattern file1 > file1
Kind Regards,
Eswar (5 Replies)
Discussion started by: picheswa
5 Replies
7. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
8. Shell Programming and Scripting
Hi,
I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console.
I've tried this command:
myscript.sh | tail -f
However, it doesn't end after the script finishes running
I've also tried this:
myscript.sh | tee ~/results.txt
But it writes... (3 Replies)
Discussion started by: wenclu
3 Replies
9. Programming
hi,
i have a html form which call a perl program, this perl program calls a shell script.
<html>
<head>
<title>demo</title>
</head>
<body>
<form name="frm1" action="/cgi-bin/perl_script.pl" method="post">
<input type="text" name="fname">
... (1 Reply)
Discussion started by: Little
1 Replies
10. Shell Programming and Scripting
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
Discussion started by: Vivekit82
7 Replies
LEARN ABOUT X11R4
plymouth
PLYMOUTH(1) User Commands PLYMOUTH(1)
NAME
plymouth - Send commands to plymouthd
SYNOPSIS
plymouth [OPTION...]
plymouth COMMAND [OPTION...]
DESCRIPTION
The plymouth sends commands to a running plymouthd. This is used during the boot process to control the display of the graphical boot
splash.
OPTIONS
The following options are understood. These options are supported for compatibility with the old rhgb-client interface, and have been
replaced by the commands that are described in the next section.
--help
Show summary of options.
--debug
Enable verbose debug logging.
--get-splash-plugin-path
Get directory where splash plugins are installed.
--newroot=[STRING]
Tell plymouthd that the new root filesystem is mounted.
--quit
Tell plymouthd to quit.
--ping
Check if plymouthd is running.
--has-active-vt
Check if plymouthd has an active vt.
--sysinit
Tell plymouthd root filesystem is mounted read-write.
--show-splash
Show the splash screen.
--hide-splash
Hide the splash screen.
--ask-for-password
Ask the user for a password.
--ignore-keystroke=[STRING]
Remove sensitivity to a keystroke.
--update=[STRING]
Tell plymouthd an update about boot progress.
--details
Tell plymouthd there were errors during boot.
--wait
Wait for plymouthd to quit.
COMMANDS
The following commands are understood:
change-mode OPTION
Change the operation mode.
--boot-up
Start the system up
--shutdown
Shutting the system up
--updates
Applying updates
system-update OPTION
Tell plymouthd about boot progress.
--progress=INTEGER
The percentage progress of the updates
update OPTION
Tell plymouthd about boot status changes.
--status=STRING
Tell plymouthd the current boot status
update-root-fs OPTION
Tell plymouthd about root filesystem changes.
--new-root-dir=STRING
Root filesystem is about to change
--read-write
Root filesystem is no longer read-only
show-splash
Tell plymouthd to show splash screen.
hide-splash
Tell plymouthd to hide splash screen.
ask-for-password OPTION
Ask the user for a password.
--command=STRING
Command to send password to via standard input
--prompt=STRING
Message to display when asking for password
--number-of-tries=INTEGER
Number of times to ask before giving up (requires --command)
--dont-pause-progress
Don't pause boot progress bar while asking
ask-question
Ask the user a question.
--command=STRING
Command to send the answer to via standard input
--prompt=STRING
Message to display when asking the question
--dont-pause-progress
Don't pause boot progress bar while asking
display-message OPTION
Display a message.
--text=STRING
The message text
hide-message OPTION
Hide a message.
--text=STRING
The message text
watch-keystroke OPTION
Become sensitive to a keystroke.
--command=STRING
Command to send keystroke to via standard input
--keys=STRING
Keys to become sensitive to
ignore-keystroke OPTION
Remove sensitivity to a keystroke.
--keys=STRING
Keys to remove sensitivitiy from
pause-progress
Pause boot progress bar.
unpause-progress
Unpause boot progress bar.
report-error
Tell plymouthd there were errors during boot.
deactivate
Tell plymouthd to deactivate.
reactivate
Tell plymouthd to reactivate.
quit OPTION
Tell plymouthd to quit.
--retain-splash
Don't explicitly hide boot splash on exit
SEE ALSO
grub(8), plymouth(8), plymouthd(8), http://www.freedesktop.org/wiki/Software/Plymouth
plymouth PLYMOUTH(1)