What could cause an automatic S10 pickup to sometimes act as if the battery were dead when the ignition key is turned?

1) Check the battery cable connections. They should be clean & tight. 2) Check the connection at the starter. They should be clean & tight. A loose ground cable on the battery. Check ground cable on the starter.