* Parsing org table from Linux command line
@ 2017-12-10 20:07 ST
2017-12-11 2:12 ` John Kitchin
0 siblings, 1 reply; 4+ messages in thread
From: ST @ 2017-12-10 20:07 UTC (permalink / raw)
To: Emacs-orgmode
Hello,
I have an org table and its third column are emails. I would like to
send an email from command line (with the "mail" cli tool) to all those
addresses.
1. How do I extract them from the table and pass to CC of "mail"?
2. Is the same possible somehow if I have several tables with different
#+TBLNAMEs: in the same file?
Thank you in advance!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Parsing org table from Linux command line
2017-12-10 20:07 Parsing org table from Linux command line ST
@ 2017-12-11 2:12 ` John Kitchin
2017-12-11 9:37 ` ST
0 siblings, 1 reply; 4+ messages in thread
From: John Kitchin @ 2017-12-11 2:12 UTC (permalink / raw)
To: ST; +Cc: Emacs-orgmode
Check out Listing 7 in
http://pubs.acs.org/doi/pdf/10.1021/acscatal.5b00538.
It is a pretty minimal Python script to get data from a table. You could
then use it to print column 3 to stdout maybe so it could get piped to
mail, or build up some command you can call.
ST writes:
> Hello,
>
> I have an org table and its third column are emails. I would like to
> send an email from command line (with the "mail" cli tool) to all those
> addresses.
>
> 1. How do I extract them from the table and pass to CC of "mail"?
>
> 2. Is the same possible somehow if I have several tables with different
> #+TBLNAMEs: in the same file?
>
> Thank you in advance!
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Parsing org table from Linux command line
2017-12-11 2:12 ` John Kitchin
@ 2017-12-11 9:37 ` ST
2017-12-11 15:36 ` John Kitchin
0 siblings, 1 reply; 4+ messages in thread
From: ST @ 2017-12-11 9:37 UTC (permalink / raw)
To: John Kitchin; +Cc: Emacs-orgmode
Thank you very much!
Is py_org_table.py part of a bigger library? Where can I find it?
Thank you!
On Sun, 2017-12-10 at 18:12 -0800, John Kitchin wrote:
> Check out Listing 7 in
> http://pubs.acs.org/doi/pdf/10.1021/acscatal.5b00538.
>
> It is a pretty minimal Python script to get data from a table. You could
> then use it to print column 3 to stdout maybe so it could get piped to
> mail, or build up some command you can call.
>
> ST writes:
>
> > Hello,
> >
> > I have an org table and its third column are emails. I would like to
> > send an email from command line (with the "mail" cli tool) to all those
> > addresses.
> >
> > 1. How do I extract them from the table and pass to CC of "mail"?
> >
> > 2. Is the same possible somehow if I have several tables with different
> > #+TBLNAMEs: in the same file?
> >
> > Thank you in advance!
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Parsing org table from Linux command line
2017-12-11 9:37 ` ST
@ 2017-12-11 15:36 ` John Kitchin
0 siblings, 0 replies; 4+ messages in thread
From: John Kitchin @ 2017-12-11 15:36 UTC (permalink / raw)
To: ST; +Cc: Emacs-orgmode
I think you just put Listing 7 in a file called py_org_table.py on your
Python path, or you could just integrate it into the script.
ST writes:
> Thank you very much!
>
> Is py_org_table.py part of a bigger library? Where can I find it?
>
> Thank you!
>
>
> On Sun, 2017-12-10 at 18:12 -0800, John Kitchin wrote:
>> Check out Listing 7 in
>> http://pubs.acs.org/doi/pdf/10.1021/acscatal.5b00538.
>>
>> It is a pretty minimal Python script to get data from a table. You could
>> then use it to print column 3 to stdout maybe so it could get piped to
>> mail, or build up some command you can call.
>>
>> ST writes:
>>
>> > Hello,
>> >
>> > I have an org table and its third column are emails. I would like to
>> > send an email from command line (with the "mail" cli tool) to all those
>> > addresses.
>> >
>> > 1. How do I extract them from the table and pass to CC of "mail"?
>> >
>> > 2. Is the same possible somehow if I have several tables with different
>> > #+TBLNAMEs: in the same file?
>> >
>> > Thank you in advance!
>>
>>
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-11 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-10 20:07 Parsing org table from Linux command line ST
2017-12-11 2:12 ` John Kitchin
2017-12-11 9:37 ` ST
2017-12-11 15:36 ` John Kitchin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).