I have a program that i have to run by cron. The program needs user input. So i have to automate that in a littke script.
start of script program.sh:
result=program.log; export result
echo Program starting : `date` >> $result
/usr/local/program >> $result
echo Program running : `date` >>... (11 Replies)
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
I know that this has a bad title, but I'm not sure how to sum it up well.
(And I'm new to Linux in general, so please excuse any incorrect terminology :o)
Anyway, I'm trying to create a script that gets whatever folder you're in, and then does a command with that directory as an argument. I... (2 Replies)
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (1 Reply)
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (3 Replies)
Hi All,
I require to develop some script which will continuously be looking for mails from some specific mail addresses on AIX server. Once any such mail arrives, the process will look into the mail subject and mail body to search for some keywords like success or failure, filename etc.... (3 Replies)
Hi All,
./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)
Is there any way for this, please let me know...
1) FX Rates MDU 9) Fidessa Cash... (7 Replies)
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Hi all,
I need to execute a script on a remote machine that are connected to the network.The basic requirement is to write a script which will login in remote machine and then execute the other script automatically placed in remote machine.So that I need to execute the remote machine script... (3 Replies)
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
LEARN ABOUT DEBIAN
hmine
HMINE(1)HMINE(1)NAME
hmine - a mail message header analyzer.
SYNOPSIS
hmine [-vDa] [FILE]
hmine -V
DESCRIPTION
hmine reads a mail message from FILE or STDIN and outputs a variety of information found in the message headers. The message is expected in
Internet mail format (RFC 821,822,2821,2822 or variations thereof). The body is not inspected.
EXIT STATUS
On success, hmine returns 1. In case of a problem, hmine returns zero.
OPTIONS -a Print mailboxes and groups found in various header fields, one per line, preceded by the field name. Actual email addresses are
always enclosed in '<' and '>' for easy parsing, ie anything not within these delimiters is not part of an email address. Beware
that not every line need contain an email address.
-D Debug output.
-V Print the program version number and exit.
USAGE
An invocation looks like this:
% hmine email.txt
SOURCE
The source code for the latest version of this program is available at the following locations:
http://www.lbreyer.com/gpl.html
http://dbacl.sourceforge.net
BUGS
At present, hmine parses messages but doesn't output anything useful.
AUTHOR
Laird A. Breyer <laird@lbreyer.com>
SEE ALSO dbacl(1), mailcross(1), mailfoot(1), mailinspect(1), mailtoe(1), regex(7)Version 1.12 Bayesian Classification Tools HMINE(1)