09-23-2010
Hi Jim,
As the application is just a ELF package, so i can not able to dig it and there may be some case connectivity like session out,traffic or may be server down .
In this case we are using some option to get to know failure case and in script calling the application with that option and using mailx upon failure.
.sh script is in cron say every 30min . So in this case it send 40-50mail for the same failure each time.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I try to use the CLI mail, I get the following error. What's wrong?
Welcome to Darwin!
% mail root
Subject: test
test
.
EOT
% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
2. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
3. Shell Programming and Scripting
Hi Friends,
I tried to mail from my sun solaris 5.8 by:
$mailx -v sridha_151086@yahoo.co.in
Subject: Test mail
This is the test mail!!
.
EOT
The error message I got is:
land% Sri... forward: /export/home/Sri/.forward.+: World writable directory
Sri... forward:... (1 Reply)
Discussion started by: sridharnr
1 Replies
4. Solaris
Hi ,
I tried to mail from my sun solaris 5.8 by:
$mailx -v sridha_151086@yahoo.co.in
Subject: Test mail
This is the test mail!!
.
EOT
The error message I got is:
land% Sri... forward: /export/home/Sri/.forward.+: World writable directory
Sri... forward:... (7 Replies)
Discussion started by: sridharnr
7 Replies
5. UNIX for Dummies Questions & Answers
I need to send invoke a script that sends out a mail, whenever a box fails (i.e., one or more of the jobs in the box fail). The key point is that this job should start on failure of box, but it should be able to find out the jobs in the box that have failed and pass them to the script.
Please... (1 Reply)
Discussion started by: hidnana
1 Replies
6. Linux
Hello All,
i have configured sendmail and trying to set a limit on mail
Ex: If i have send any mail to a email-if that doesn'e exists, i want that after trying for 3 days it should stops sending that mail to user and send a mail to the sender that " sending mail failed , any messaged... (1 Reply)
Discussion started by: saurabh84g
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
8. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
9. Shell Programming and Scripting
dear all,
i have script rsync like this :
#!/bin/sh
RSYNC=/usr/bin/rsync
SSH=/usr/bin/ssh
RUSER=root
RHOST=123.123.123.1
INTRPATH=/home/jargo/log/internasional/
INTHPATH=/var/www/international/
IIXRPATH=/home/jargo/log/iix/
IIXHPATH=/var/www/iix/
TTLRPATH=/home/jargo/log/total/... (2 Replies)
Discussion started by: indracyd
2 Replies
10. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
send(n) Tk Built-In Commands send(n)
__________________________________________________________________________________________________________________________________________________
NAME
send - Execute a command in a different application
SYNOPSIS
send ?options? app cmd ?arg arg ...?
_________________________________________________________________
DESCRIPTION
This command arranges for cmd (and args) to be executed in the application named by app. It returns the result or error from that command
execution. App may be the name of any application whose main window is on the display containing the sender's main window; it need not be
within the same process. If no arg arguments are present, then the command to be executed is contained entirely within the cmd argument.
If one or more args are present, they are concatenated to form the command to be executed, just as for the eval command.
If the initial arguments of the command begin with "-" they are treated as options. The following options are currently defined:
-async Requests asynchronous invocation. In this case the send command will complete immediately without waiting for cmd to complete in
the target application; no result will be available and errors in the sent command will be ignored. If the target application is
in the same process as the sending application then the -async option is ignored.
-displayof pathName
Specifies that the target application's main window is on the display of the window given by pathName, instead of the display con-
taining the application's main window.
-- Serves no purpose except to terminate the list of options. This option is needed only if app could contain a leading "-" character.
APPLICATION NAMES
The name of an application is set initially from the name of the program or script that created the application. You can query and change
the name of an application with the tk appname command.
DISABLING SENDS
If the send command is removed from an application (e.g. with the command rename send {}) then the application will not respond to incom-
ing send requests anymore, nor will it be able to issue outgoing requests. Communication can be reenabled by invoking the tk appname com-
mand.
SECURITY
The send command is potentially a serious security loophole. On Unix, any application that can connect to your X server can send scripts to
your applications. These incoming scripts can use Tcl to read and write your files and invoke subprocesses under your name. Host-based
access control such as that provided by xhost is particularly insecure, since it allows anyone with an account on particular hosts to con-
nect to your server, and if disabled it allows anyone anywhere to connect to your server. In order to provide at least a small amount of
security, Tk checks the access control being used by the server and rejects incoming sends unless (a) xhost-style access control is enabled
(i.e. only certain hosts can establish connections) and (b) the list of enabled hosts is empty. This means that applications cannot con-
nect to your server unless they use some other form of authorization such as that provide by xauth. Under Windows, send is currently dis-
abled. Most of the functionality is provided by the dde command instead.
EXAMPLE
This script fragment can be used to make an application that only runs once on a particular display.
if {[tk appname FoobarApp] ne "FoobarApp"} {
send -async FoobarApp RemoteStart $argv
exit
}
# The command that will be called remotely, which raises
# the application main window and opens the requested files
proc RemoteStart args {
raise .
foreach filename $args {
OpenFile $filename
}
}
KEYWORDS
application, dde, name, remote execution, security, send
Tk 4.0 send(n)