Sponsored Content
Full Discussion: Nail command error
Top Forums UNIX for Dummies Questions & Answers Nail command error Post 302826289 by Junaid Subhani on Wednesday 26th of June 2013 09:29:09 AM
Old 06-26-2013
Wrench Nail command error

Hello all.

I am currently using Red Hat Enterprise Linux Server release 5.8 (Tikanga).

I have multiple users on this system and intend to use nail command to send out emails.
When I enter the command:
Code:
nail <some-email-address>

its accepts the command and sends out an email.

But when I log into the system using orasoa user and try using the nail command, this is what I get;

Code:
ORASOA @titan3:/home/orasoa>nail <some-email-address>
temporary mail message file: Permission denied

The .bash_profile of orasoa user is:

Code:
ORASOA @titan3:/home/orasoa>cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

ORACLE_BASE=/appl/orasoa; export ORACLE_BASE
ORACLE_HOME=/appl/orasoa/product/10.1.3; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$PATH:$HOME/bin:/usr/sbin:/usr/local/bin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/OPatch:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/opmn/bin; export CLASSPATH
export PS1='ORASOA '@`hostname`':$PWD>'
alias home='cd $ORACLE_HOME'
alias bin='cd $ORACLE_HOME/bin'
alias port='cd $ORACLE_HOME/install'
alias opmn='cd $ORACLE_HOME/opmn/bin'
alias conf='cd /appl/orasoa/tabs7'
alias apache='cd /appl/orasoa/product/10.1.3/Apache/Apache/conf'
alias csapp='cd /appl/orasoa/product/10.1.3/j2ee/tcs/applications/tcs/CS6.11.4.4/WEB-INF/classes/config'
#alias csapp7='cd /appl/orasoa/product/10.1.3/j2ee/tcs7/applications/tcs7/CS*/WEB-INF/classes/config'
alias ws='cd /appl/orasoa/product/10.1.3/j2ee/tcs_ws/applications/tcs_ws/TABSWebService/WEB-INF/lib'
alias mapping='cd /appl/orasoa/product/10.1.3/j2ee/tcs/applications/tcs/CS6.11.4.4/WEB-INF/classes/ws/its/messagehandling'
alias mapping7='cd /appl/orasoa/product/10.1.3/j2ee/tcs7/applications/tcs7/CS*/WEB-INF/classes/ws/its/messagehandling'
alias logs='cd /logs/tabs7'


#if [ $USER = "orasoa" ]; then
#  if [ $SHELL = "/bin/ksh" ]; then
#    ulimit -p 16384
#    ulimit -n 65536
#  else
#    ulimit -u 16384 -n 65536
#  fi
#fi

TMPDIR=$TMP; export TMPDIR
TMP=/tmp; export TMP
/usr/bin/script -a /var/tmp/session_log/$LOGNAME.$$;
exit


Why cant I send out Emails using nail command from this specific user? What seems to be the problem here?
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to send multiple attachment through "nail" command

Hi, I using the "nail" command to send an attachement,the command is : nail -s TEST -a $param/Result.html xyz@yahoo.com </dev/null but now my requirement is changed, I have to send two attachments,through the same mail.. :rolleyes: I have tried this: nail -s TEST -a $param/*.html... (1 Reply)
Discussion started by: Amey Joshi
1 Replies

2. Shell Programming and Scripting

nail set header

Hi all. I am kind a new in Linux, so please forgive me if some statements will be dumb. So for some unknown reason server I am working on is using nail command instead of mail and mailx. I have googled around and fined out that it is possible to set mail header using command mail and option -a.... (0 Replies)
Discussion started by: rvaitkus
0 Replies

3. UNIX for Dummies Questions & Answers

problem with character @ inside username to use pop3 with nail

Hi: I am trying to read mails using pop3 protocol with the nail client. I have configurated the following files: .mailrc set NAIL_EXTRA_RC=~/.nailrc .nailrc shortcut myisp pop3://developers@afinformatica.com@mail.afinformatica.com set... (2 Replies)
Discussion started by: chemi
2 Replies

4. Shell Programming and Scripting

Crontab not running "nail" in script

the script is in Perl... this is one part of it: $command = "echo \"$text\" | /usr/bin/nail -s \"My $text1\" $ccstr$addstr"; system("$command") if length($bodytext)>1; crontab runs the script and sends me notifications but i cant receive any mail that i wanted! I'm using the complete path... (1 Reply)
Discussion started by: yeean
1 Replies

5. Shell Programming and Scripting

HTML + Nail Command

Hello all I am trying to send an email to my Outlook from a Solaris 10 machine using a Nail command. The email is of HTML type but when I receive it in outlook, its in simple text format showing HTML tags as shown below: Command I am using: cat body.lst | /opt/nail-11.25/bin/nail -r... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies

6. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
subscription-manager-gui(8)				       Subscription Manager				       subscription-manager-gui(8)

NAME
subscription-manager-gui - Launches the UI client of the Subscription Manager. SYNOPSIS
subscription-manager-gui [--register] DESCRIPTION
subscription-manager-gui opens the local client tool to manage subscriptions and installed products on Red Hat Enterprise Linux systems. The same tasks that can be performed by invoking subscription-manager can be performed in the GUI, including registering systems with a subscription management service, applying and removing subscriptions, and viewing the subscription status of installed products. The Subscription Manager UI can also be opened by selecting the Red Hat Subscription Manager item from the Applications > System Tools menu in RHEL 5.x or the System > Administration menu in RHEL 6.x. OPTIONS
--register If a system has not yet been registered, then the GUI registration page can be opened immediately, as the Subscription Manager GUI comes up. This is only relevant for unregistered systems; if this is used after a system is registered, the option is ignored. REFERENCES
For procedures and tasks that can be performed in the Subscription Manager UI, check the Gnome help files (by pressing <F1>) or refer to the RHEL Subscription Management Guide at <https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Subscription_Management/1.0/html/Sub- scription_Management_Guide/index.html>. ASSOCIATED FILES
* /usr/sbin/subscription-manager-gui * /usr/sbin/subscription-manager * /etc/rhsm/rhsm.conf BUGS
This client is part of Red Hat Subscription Manager. To file bugs against this client, go to https://bugzilla.redhat.com, and select Red Hat > Red Hat Enterprise Linux > subscription-manager. AUTHORS
Deon Lackey, <dlackey@redhat.com>. COPYRIGHT
Copyright (c) 2010-2012 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. version 1.2 December 18, 2012 subscription-manager-gui(8)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy