It's expecting input from the terminal; tell it to expect input from /dev/null instead.
uuencode is pretty ancient; perhaps you should use a proper MIME sending client instead, these days (maybe nail is such a beast? Never heard of it before). See the FAQ forum for more on this topic.
I have set up in Solaris to email me and I received emails on the OS level. However, I don't get the mail in my MS Outlook. Please advise.
Thanks in advance. (3 Replies)
Hi All,
I am working with solaris 5.9 servers.After some patch installation my mailx is not working in the server.I am using IBM Lotus Notes.
Please help me to solve this issue (4 Replies)
Hi All,
I am strugging with mailx.
I have a shell script which triggers mail when executed.
I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am not getting mails..any idea why strange behaviour..?
Tha:(nks in advance
Usha (2 Replies)
i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server.
i ran the following commands and got the corresponding output.
#which mailx
/usr/bin/mailx
#ps -ef | grep sendmail
root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Hello,
I have two unix boxes..
One of the unix box version is
Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I have shell script which has the below script.
cat xyz.log|mailx -s "export is Successful" \ xyz.xyz@xyz
The above... (3 Replies)
i have a file.i want to get that file to my mail.mail services are running.but still i didn't receive the mail.
i have used this command.
mailx -s file1 muraliinfy04@gmail.com < file2.txt.can anybody help me.it's urgent.I am new to unix.
actually file1 i have directed to a file2.txt (8 Replies)
when i am using Mailx command from AIX box, i am getting the following errors :
uuencode: not found.
mailx: not found.
but when i executed the mailx command as shown below it worked
cat /etc/hosts | mailx -v -s "test email" user@server.com
It works fine in the production server.
... (2 Replies)
Hi,
telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 TechBun ESMTP Postfix
This command echo "hi" | mail -v me@mycomp.com does not send mail to my inbox and i get the below output.
Upon investigation i saw this log file tail -f... (3 Replies)
after a new patch set on the 14th. I noticed that mailx stopped working, as far a I can tell that is the only thing that changed.
solaris 10 OS
it seems everything is the same, sendmail seems to be running
root@server # ps -ef | grep -i sendmail
smmsp 687 1 0 10:42:25 ? ... (0 Replies)
Discussion started by: goya
0 Replies
LEARN ABOUT OSF1
tty
tty(1) General Commands Manual tty(1)NAME
tty - Returns pathname of terminal device
SYNOPSIS
tty [-s]
The tty command writes the full pathname of your terminal device to standard output. The tty command may also be used to determine if
standard input is a terminal.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
tty: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Suppresses reporting the pathname.
The XCU specification states that -s option is obsolete and recommends the portable applications use test -t 0 instead of tty -s.
OPERANDS
None
DESCRIPTION
The command tty -s evaluates as TRUE if standard input is a display and FALSE if it is not.
[Tru64 UNIX] The file /dev/tty is a special file always refers to your controlling terminal, although it also may have another name like
/dev/console or /dev/tty2. To avoid writing undesirable output to an output file--for example, to write a prompt in a shell script to the
screen, while writing the response to the prompt to an output file--redirect standard output to /dev/tty.
NOTES
While the -s option is useful if only the exit code is wanted, it does not rely on any ability to form a valid pathname. For a portable
application you should use the command test -t 0.
EXIT STATUS
The following exit values are returned: Successful completion. Standard input is not a display. [Tru64 UNIX] Invalid options specified.
[Tru64 UNIX] An error occurred.
DIAGNOSTICS
[Tru64 UNIX] Your standard input is not a display and you did not specify the -s option.
EXAMPLES
To display full pathname of your terminal device, enter: tty To test whether or not the standard input is a terminal device, create a shell
script containing the following: if tty -s then echo 'Output is a display' else echo 'Output is not a display' fi
If the standard input is a terminal device, this displays the Output is a display message. If the standard input is not a terminal
device, it displays the Output is not a display message.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of tty: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes
of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for-
mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
FILES
Pseudodevice representing the user's controlling terminal.
SEE ALSO
Commands: stty(1), test(1)
Routines: ttyname(3)
Files: tty(7)
Standards: standards(5)tty(1)