Sponsored Content
Full Discussion: Mailx command not working
Top Forums UNIX for Dummies Questions & Answers Mailx command not working Post 302222473 by Amey Joshi on Thursday 7th of August 2008 12:52:05 AM
Old 08-07-2008
Power

Thanks for your reply!

I checked in my system..."nail" command is working fine....

As you said i have tried with '.txt' file and it working fine.. Smilie

nail -s TEST -a $value/some.txt ajoshi@yahoo.com

Now the problem with this command is every time when we use "nail" command we have to press "cntrl +D" Smilie
I have to use this command in shell scripting....can anybody tell me..how to use the above command in scripting... Smilie ..(since in automated script we can not press contrl + D everytime)Smilie

Thanks in Advance!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mailx -s not working right

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)
Discussion started by: simt
3 Replies

2. Solaris

mailx is not working.......

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)
Discussion started by: Renjesh
4 Replies

3. Shell Programming and Scripting

mailx not working

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)
Discussion started by: usha rao
2 Replies

4. Solaris

mailx not working

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)
Discussion started by: asalman.qazi
1 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. Shell Programming and Scripting

mailx -s is not working

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)
Discussion started by: govindts
3 Replies

7. Shell Programming and Scripting

mailx is not working

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)
Discussion started by: muraliinfy04
8 Replies

8. Shell Programming and Scripting

Mailx command not working in the script

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)
Discussion started by: pyaranoid
2 Replies

9. Shell Programming and Scripting

Mailx not working on Linux

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)
Discussion started by: mohtashims
3 Replies

10. Solaris

Mailx stopped working

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
Mojo::Command(3pm)					User Contributed Perl Documentation					Mojo::Command(3pm)

NAME
Mojo::Command - Command base class SYNOPSIS
# Lower case command name package Mojolicious::Command::mycommand; # Subclass use Mojo::Base 'Mojo::Command'; # Take care of command line options use Getopt::Long 'GetOptions'; # Short description has description => "My first Mojo command. "; # Short usage message has usage => <<"EOF"; usage: $0 mycommand [OPTIONS] These options are available: -s, --something Does something. EOF # <suitable Futurama quote here> sub run { my $self = shift; # Handle options local @ARGV = @_; GetOptions('s|something' => sub { $something = 1 }); # Magic here! :) } DESCRIPTION
Mojo::Command is an abstract base class for Mojo commands. See Mojolicious::Commands for a list of commands that are available by default. ATTRIBUTES
Mojo::Command implements the following attributes. "description" my $description = $command->description; $command = $command->description('Foo!'); Short description of command, used for the command list. "quiet" my $quiet = $command->quiet; $command = $command->quiet(1); Limited command output. "usage" my $usage = $command->usage; $command = $command->usage('Foo!'); Usage information for command, used for the help screen. METHODS
Mojo::Command inherits all methods from Mojo::Base and implements the following new ones. "app" my $app = $command->app; Currently active application. # Introspect say "Template path: $_" for @{$command->app->renderer->paths}; "chmod_file" $command = $command->chmod_file('/home/sri/foo.txt', 0644); Portably change mode of a file. "chmod_rel_file" $command = $command->chmod_rel_file('foo/foo.txt', 0644); Portably change mode of a file relative to the current working directory. "class_to_file" my $file = $command->class_to_file('Foo::Bar'); Convert a class name to a file. Foo::Bar -> foo_bar FOO::Bar -> foobar FooBar -> foo_bar FOOBar -> foobar "class_to_path" my $path = $command->class_to_path('Foo::Bar'); Convert class name to path. Foo::Bar -> Foo/Bar.pm "create_dir" $command = $command->create_dir('/home/sri/foo/bar'); Portably create a directory. "create_rel_dir" $command = $command->create_rel_dir('foo/bar/baz'); Portably create a directory relative to the current working directory. "get_all_data" my $all = $command->get_all_data; my $all = $command->get_all_data('Some::Class'); Extract all embedded files from the "DATA" section of a class. "get_data" my $data = $command->get_data('foo_bar'); my $data = $command->get_data('foo_bar', 'Some::Class'); Extract embedded file from the "DATA" section of a class. "help" $command->help; Print usage information for command. "rel_dir" my $path = $command->rel_dir('foo/bar'); Portably generate an absolute path for a directory relative to the current working directory. "rel_file" my $path = $command->rel_file('foo/bar.txt'); Portably generate an absolute path for a file relative to the current working directory. "render_data" my $data = $command->render_data('foo_bar', @args); Render a template from the "DATA" section of the command class. "render_to_file" $command = $command->render_to_file('foo_bar', '/home/sri/foo.txt'); Render a template from the "DATA" section of the command class to a file. "render_to_rel_file" $command = $command->render_to_rel_file('foo_bar', 'foo/bar.txt'); Portably render a template from the "DATA" section of the command class to a file relative to the current working directory. "run" $command->run; $command->run(@ARGV); Run command. Meant to be overloaded in a subclass. "write_file" $command = $command->write_file('/home/sri/foo.txt', 'Hello World!'); Portably write text to a file. "write_rel_file" $command = $command->write_rel_file('foo/bar.txt', 'Hello World!'); Portably write text to a file relative to the current working directory. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Command(3pm)
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy