Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I fetch the most recent data recorded by the cpd program from my LiveCPD system?

0
Posted

How can I fetch the most recent data recorded by the cpd program from my LiveCPD system?

0

The data are located in the /aer/${stn}/log directory, where ${stn} denotes the lower-case station identification code (e.g., “mlo” for Mauna Loa). A computer that has been configured to allow login to the LiveCPD system (at address ${IP}) without a password can download these files with the following command (all on one line): scp -p cpd@${IP}:/aer/${stn}/log/*_2*_* . Note that output buffering by the operating system causes these files to be a bit behind real-time, and to potentially have incomplete last lines. Alternatively, a listing of the latest 30 minutes of aerosol data can be displayed by executing this command on the remote computer (all on one line): ssh cpd@{IP} ‘cpdrotate; sleep 5; ssh cpd@${IP} cnvth__ /aer/${stn}/log/AEROSL* |sort -u |tail -30’ Use of the ‘cpdrotate’ command causes the current output files to closed and the buffers flushed, ensuring that the most recent data are displayed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123