02-05-2013
Hi cero, thanks for the answer
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody,
Is there any way to make a script (Bash, KornShell, etc.) executable
by mouse clicking?
For example you have a file myscript.sh, you run:
$ chmod u+x myscript.sh
Therefore it becomes executable and all you need is to run from
the terminal:
$./myscript.sh... (2 Replies)
Discussion started by: dariyoosh
2 Replies
2. Shell Programming and Scripting
hi
i got a file called essay which contain few pages with many paragraphs. now i wanna with PERL to produce another file which called Essaylist that contain a sorted list of words that appear in the file essay.
the format for Essaylist:
$word found $times times on page a b c....
where $word... (3 Replies)
Discussion started by: mingming88
3 Replies
3. Shell Programming and Scripting
Hi
I wrote a shell script , which includes one output file which is emailed back to me , when the script runs .
Now i want to slip the script into 4 different shell scripts each of which taking the parameter PROD or DEV, and include all the 4 different shell scripts in a caller script.
... (3 Replies)
Discussion started by: rxg
3 Replies
4. Shell Programming and Scripting
Hi,
I have requirement to produce a report on high CPU utilization processes and the processes lying on the CPU for long time (Long running queries). The report should append into the files every 3 minutes. I use prstat to pull top 5 and found the following result.
... (3 Replies)
Discussion started by: thinakarmani
3 Replies
5. UNIX for Dummies Questions & Answers
Hey guys, so I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into... (4 Replies)
Discussion started by: Duo11
4 Replies
6. Shell Programming and Scripting
I wish to create an executable bash script that will run the following commands as root, that is, using sudo su
iptables-save | awk '/^
/ { print $1 }
/^:+ / { print $1 " ACCEPT" ; }
/COMMIT/ { print $0; }' | iptables-restoreMy first attempt at bash... (9 Replies)
Discussion started by: thixeqi
9 Replies
7. Shell Programming and Scripting
Does it possible to make some bash script automatic to be a executable when transfered to another pc...? (5 Replies)
Discussion started by: tomislav91
5 Replies
8. Shell Programming and Scripting
Is there a way to make this make itself executable?
Thanks. :-)
cat > somescript.sh << \EOF
#!/bin/bash
block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}')
reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')
perl -e... (4 Replies)
Discussion started by: drew77
4 Replies
9. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
10. UNIX for Beginners Questions & Answers
Can anyone offer any advice on how to modify the script below to work on a new system we have, that has no graphics capability? We admin the system through a serial RAS device. I've tried running the below script through the RAS and through an ssh -X session. It failed with something like "GTK... (3 Replies)
Discussion started by: yelirt5
3 Replies
LEARN ABOUT HPUX
faxanswer
FAXANSWER(8) System Manager's Manual FAXANSWER(8)
NAME
faxanswer - tell a HylaFAX server to answer the telephone
SYNOPSIS
/usr/sbin/faxanswer [ -q queue-dir ] [ -h how ] modem
DESCRIPTION
faxanswer sends a message to the HylaFAX faxgetty(8) process servicing modem telling it to answer the telephone. This is useful, for exam-
ple, when a modem is used on a shared phone line and the server is configured to not normally answer the phone.
The specified modem can either be the name (typically the last component of the terminal port the modem is attached to), or the full name
of the associated FIFO named pipe file, e.g. ``FIFO.ttym2''.
OPTIONS
-q dir Use a spooling area other than /var/spool/hylafax.
-h Specify exactly how the phone should be answered. By default, the server process is instructed to answer the phone and accept
any kind of call (voice, data, fax). Discrimination of the type of call is dependent on a modem's adaptive-answer support. The
-h option can be used to force the server to answer the phone for particular type of call: one of fax, data, voice, any, extern
(to force faxgetty to invoke an external application to to handle the call), or dialX (where X is a dialstring to dial before
initiating a fax reception). If using dialX, the specified dialstring will likely need to end with a semicolon (``;'').
FILES
/var/spool/hylafax default spooling area
/var/spool/hylafax/FIFO fifo for contacting faxq
Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area.
SEE ALSO
hylafax-server(5), faxgetty(8)
May 23, 1996 FAXANSWER(8)