LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 03-11-2011, 10:03 AM   #1
technorat
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
Question Running a shell script in e-mails


I know that shell scripts can be used to execute more than one linux command at the same time. But can the same be performed in an e-mail (i.e) whenever i open that specific e-mail, the linux command should execute. Any ways of how to do this...?
 
Old 03-11-2011, 10:26 AM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
When you open an email, you're opening it within the application environment of your email client, which is not bash.

Also, since this sounds like the most convenient way ever to execute arbitrary code on someone else's machine, don't count on finding an email client that will support this in your lifetime.
 
2 members found this post helpful.
Old 03-11-2011, 10:34 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Not going to find anything like this -- since it is essentially a macro virus.
 
1 members found this post helpful.
Old 03-12-2011, 10:27 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
technorat,

Why do you want to do this?

Your post has been reported as a violation of LQ Rules, specifically:
Quote:
  • Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
Please explain your request.

Thank you for your co-operation.
 
Old 03-12-2011, 10:32 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You could use procmail, to execute a script when a certain email arrives.

Kind regards
 
Old 03-12-2011, 10:38 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by repo View Post
You could use procmail, to execute a script when a certain email arrives.

Kind regards
Hi repo,

I don't think that's exactly what the OP wants. He's looking for a way to execute a script when he opens an email. Things like that are not very kosher I believe

Kind regards,

Eric
 
Old 03-13-2011, 01:45 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Since the OP did not reply to the mod's request (see post #4) in the last 24-hours, this thread is closed for now. Reason: potential illicit activity.

@technorat: e-mail me if you want to discuss about your request and eventually re-open the thread.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error running shell script roaan General 5 01-31-2010 04:16 PM
Running shell script through perl tucs_123 Programming 8 03-19-2009 08:43 PM
running a shell script which invokes another shell program!!! raghu123 Programming 1 08-04-2008 10:10 AM
In which shell is the script running? indiancosmonaut Solaris / OpenSolaris 5 10-23-2007 01:13 AM
c/c++ running a shell script? thermalpants Programming 3 05-12-2002 12:41 PM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration