epost


This documentation reflects EDirect version 7.60, released on 11/14/2017.

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.


The epost command uses the EPost utility to post a list of unique identifiers (UIDs; i.e. PMIDs) to the History server, so they can be used by a later command.

Input

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.

Output

A snippet of XML that includes a count of the number of UIDs posted:

<ENTREZ_DIRECT>
    <Db>pubmed</Db>
    <WebEnv>NCID_1_83457828_130.14.22.215_9001_1475153568_1114939190_0MetA0_S_MegaStore_F_1</WebEnv>
    <QueryKey>2</QueryKey>
    <Count>3</Count>
    <Step>1</Step>
</ENTREZ_DIRECT>

In addition, 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.

Arguments

The epost command allows the following arguments:

  • -db: The database which the UIDs you wish to post are associated with.
    • Example: -db pubmed
  • -id: One or more UIDs (PMIDs, if your -db argument is pubmed), separated by commas.
    • Example: -id 24102982,21171099,17150207
    • Example: -id 26287646
  • -input: A text file containing a list of UIDs (PMIDs, if your -db argument is pubmed), with one UID on each line. This could be a .csv file, a .txt file, or any other file plain text file format.
    • Example: -input pmids.csv
    • Example: -input pmids.txt

Examples

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