This documentation reflects EDirect version 10.9, released on 2/1/2019.
We strive to keep this documentation up-to-date with the latest release. If you are looking for documentation on a more recent version of EDirect, or to find out more about new EDirect releases, please see the Release Notes of NCBI's EDirect documentation.
One or more unique identifiers (UIDs; i.e. PMIDs). These UIDs can be specified in the
-id argument (see below), can be listed in a file specified in the
-input argument (see below), or can be piped in from a previous command using “|”. For more information on creating pipelines, see the “Making data pipelines with the History server” section of our EDirect overview.
A snippet of XML that includes a count of the number of UIDs posted:
<ENTREZ_DIRECT> <Db>pubmed</Db> <WebEnv>NCID_1_83457828_126.96.36.199_9001_1475153568_1114939190_0MetA0_S_MegaStore_F_1</WebEnv> <QueryKey>2</QueryKey> <Count>3</Count> <Step>1</Step> </ENTREZ_DIRECT>
epost posts the UIDs and the database they are associated with, and stores them on the History server, using the Web Environment and Query Key specified in the XML snippet.
epost command allows the following arguments:
-db: The database which the UIDs you wish to post are associated with.
-id: One or more UIDs (PMIDs, if your
pubmed), separated by commas.
-input: A text file containing a list of UIDs (PMIDs, if your
pubmed), with one UID on each line. This could be a .csv file, a .txt file, or any other file plain text file format.
Post the PMID 25359968 to the History server:
epost -db pubmed -id 25359968
Post the PMIDs 24102982, 21171099, and 17150207 to the History server:
epost -db pubmed -id 24102982,21171099,17150207
Post the PMIDs listed in the file “pmids.csv” to the History server:
epost -db pubmed -input pmids.csv