General :: Make A Shell - Using Mail Command DestMail= Cat
Jul 22, 2011
I have a problem to make a shell, using mail command DestMail= cat /opt/scripts/maillist.txt mail -s"SUBJECT" $DestMail -- -r xxxxx@gmail.com < /opt/scripts/test.txt where: maillist.txt contain email adresse separated by comma test.txt mail text this script can eval DestMail variable!!
View 1 Replies
ADVERTISEMENT
May 26, 2011
Consider that I am building my application in Linux shell using make command but somehow the build fails. Is there any way I can find out that the build has failed (of course looking at shell for error messages will do the job for me but I don't want that). Is there any flag make or shell will set/reset if such failure occurs ?
View 5 Replies
View Related
Mar 4, 2010
How can i make a script to send the output of top command in mail.
i have to mail the output to another person , tell me how can i do this
View 3 Replies
View Related
Apr 6, 2010
Is it possible to create a shell script that will run a shell command and email the results?
View 2 Replies
View Related
Feb 15, 2010
I have a shell script that creates a file and at the end I want to mail the contents of the file to myself or a group.
Here is what I have but I the script halts and I have to hit <ctrl-d> the n I receive an EOT and the mail is sent.
What I need:
- how to terminate the mail to where is terminates automatically
- can I cat the file contents instead of using -a
View 1 Replies
View Related
Jun 14, 2010
i want to write the script which check the disk space of linux server and send me the disk space details and mail me on my id.
View 2 Replies
View Related
Feb 15, 2010
i want to send mail from unix mail command to my yahoo-id with attachment, but i want to receive it as attachment.
View 1 Replies
View Related
Nov 19, 2010
I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok Now I cannont send mail through command line.
[Code]....
View 9 Replies
View Related
Jun 15, 2010
I am using Red Hat Linux Enterprise version 5. I've noticed people sometimes running commands with a couple of & options. For example, in the below command, there are two & signs. What is the purpose of them? Are they always used together with nohup?
nohup foo.sh <script parameters> >& <log_file_name> &
View 6 Replies
View Related
Jul 27, 2011
I am setting up a cron job, where i am calling a shell script to make few builds. I got struck at a point, need some expert inputs to proceed further. The script is categorized in 5 parts and in the last part while building software it asks for few questions like:-
1. Build mode choice
2. normal build
3. Copy Images
4. Arch
User manually has to input ans for these questions:-
1
yes
n
64
The ans's are fixed and this won't change. How shall i hard-code them or do something in the script so as when script flow reaches to this point it automatically take's these value. So far the cron job is not getting completed as it's waiting for user to key in these values manually. I had faced similar issue while building kernel modules but there it was easier as i had to take default values always:-
View 2 Replies
View Related
Jun 27, 2010
Trying to write a shell script called make to read a file called dirs with the following in it
programs
scripts
documents
Read file line by line and make the directories in the current directory when you type ./make dirs if no file is given then program should print usage:
make dirs filename
View 3 Replies
View Related
Jul 31, 2010
I have a laptop running Ubuntu 10.04 and i want to make a shell script and I want a beep sound but I can't get one..
I tried this and i didn't hear any beep
View 4 Replies
View Related
May 31, 2011
I'm looking for a specific command,if it exist... i want to login from my server to another Linux server,but the question is: can i do it in a one line command for ex:
usually you type: ssh "user"@10.1.1.1 and then the password,but I'm looking for a command in one line a fake ex: ssh user@10.1.1.1 -p "password" something like that.
I don't know if anyone of you understand what do i want to say .
View 6 Replies
View Related
Sep 9, 2011
I have questions about mail,
I am using following command on my linux account of my compnay
mail -s 'Hi' username@gmail.com
But I dont receive any emails, where as did not receive any error while executing the above command, so whats going on and what is happening.
what email id do mail use to send the email by default. Is there any way or command to print this by default user id.
View 2 Replies
View Related
Feb 19, 2011
I am teaching using an Ubuntu 10 server. The course stipulates the students use the mail command to send me assessment work, however I can't get mail to work (I did have to install it in the first place). After I end the message with a dot I get the message "send-mail: cannot open mail:25".
View 7 Replies
View Related
Nov 3, 2010
how can attachment sends through mail command in linux with mail command either with mail -s or -v option also please confirm how to download the attachments from it . and how one should knows with mail command that attachment is present with the particular mail
View 4 Replies
View Related
Sep 15, 2010
I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)
My current Makefile
Quote:
#What needs to be built to make all files and dependencies
clean:
# End of Makefile
I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.
I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop
View 1 Replies
View Related
Jan 30, 2010
i've been searching all over the internet for a way to let the user press a particular key let's say 'y' without the user having to press [Enter] as confirmationfor yes, this would then run another function.
Quote:
Book Inventory Summary Report:-
Title, Author, Price
______________________________
StarWars EP1, G.Lucas, $49.59
Harry Potter, Rowling, $45.98
The Matrix, Mr. Smith, $53.98
Press 'y' to make a copy of this result into a file or 'n' to return to the main menu.. I understand the "press any key to continue" would go something like
Code:
read -sn 1 -p "Press any key to continue.." But i try many different ways of getting the "press a particular key" function, and none of them works.
View 5 Replies
View Related
Jun 21, 2010
I'm writing a shell script to check the I/O activity of a Linux box and if the server is quiet for a certain long time, the script should let the server go to sleep. But, after some Google searching, I didn't find a answer yet. Is there a shell script command to put a Linux box to sleep?
View 3 Replies
View Related
Dec 17, 2010
I tried to execute a shell command by M-! cmd RET but it did not work.M-! does not turn up in the microbuffer no matter how many times I press Alt+!.But if I go to Tools menu and select Shell Command... option then it writes M-! to the microbuffer and everything works fine.What is the problem here?
View 2 Replies
View Related
Mar 22, 2011
i have a text file generated automatically from a script , but the result in the script is not ordered in a readable way, so i need your help to fix it using a shell command the text file contain data in this way :
Code:
0.147361 0.243688 0.081520 -0.446603 1.130529 NC_000846 Chordata
Rheiformes
Aves
0.091740 0.379224 0.021160 -0.088493 3.441356 NC_000857 Arthropoda
Diptera
[code]....
i want to arrange the data in this text file in a way that each line will concatenate the 2 lines after it , so that will be 1 line , i want all the lines to be treated in this way ,
View 2 Replies
View Related
Mar 21, 2011
Reading a BASH script, I saw a find command preceded with a backslash. It was similar to this:
Code:
`find . -type f -name '*.xml' -print > xmlfilelist`
It's impossible to find documentation about this in man pages or on the internet, since 'backslash' are always evoked along with special characters. I also noticed that even though the command was surrounded with backquotes, the result was not affected to any variable. Maybe the backslash's presence is related with this?
View 2 Replies
View Related
Sep 4, 2010
I would like to create the shell which would support the LS command in C++. And any way to change the command prompt.
View 1 Replies
View Related
Sep 4, 2010
I would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed.
View 7 Replies
View Related
Jul 1, 2010
I want to delete all may mail root in command line and i don't find this... the command mail + "d" work fine but i want use it in a .sh
I explain too : I use fetchmail to have mail from a gmail box, and use RIPMIME to save the attachment in a folder... these work fine, but the i want delete these mails.
View 3 Replies
View Related
Mar 16, 2010
I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.
View 6 Replies
View Related
Jun 3, 2009
Send an E-mail to your local account. Try two different ways to send and read it. How can you check that it really arrived? I decided to try using the 'mail' and 'pine' commands. So:
1) Using the root account, intending to send an e-mail to myself (root):
Code:
# mail -s "Hello root!" root
Simple form of sending e-mails internally.
^D (this keystroke is to finish the e-mail)
EOT
2) Using 'pine', another e-mail client: The mail is composed correctly, with 'To:' field set to:
Quote:
[URL]
which is my hostname, as my box runs in a VMWare Slack 12.2 image. In both cases, nothing was received in my mailbox (by typing #mail)... Additionally I don't see any new e-mails when I look at the file '/var/spool/mail/root'. Do I need extra information configuring my mail client/server/service?
View 6 Replies
View Related
Jun 20, 2011
I just installed Gnome Shell in Ubuntu 11.04 through UGR Linux and everything works fine! The only problem is that I cannot run make and make install. I get the following errors:
Code:
alexandros@Autobot:~/gnome-shell/source/gnome-shell-extensions$ make && make install
Making all in extensions
make[1]: Entering directory `/home/alexandros/gnome-shell/source/gnome-shell-extensions/extensions'[code]........
View 3 Replies
View Related
Feb 23, 2010
shell command to display contents of a file? Like that of .txt or .html
View 9 Replies
View Related
Jun 29, 2010
How can I pipe the output of a shell command into a new buffer in Vim? The following obviously wouldn't work, but you can see what I'm getting at:
:!echo % | :newtab
View 2 Replies
View Related