title: Magento - Cronjob outside magento to update shipment status
body: <p>I am working on a script which is out of magento framework and will be programmed to get all shipments and tracking number. </p>
  
  <p>After getting these shipments and tracking number i will check with shipping provider and update the status of shipment and order based on if its dispatched / scanned or delivered.</p>
  
  <p>following is half done code and I am stuck,
  <code></p>
  
  <pre><code>&lt;?php
      require_once 'app/Mage.php';
      Mage::app('default');
  
  $myShipment=Mage::getModel('sales/order_shipment'); 
  $shipment=Mage::getResourceModel('sales/order_shipment_collection')
      -&gt;addAttributeToSelect('*');
  
  $allIds=$shipment-&gt;getAllIds();
  foreach($allIds as $thisId) {
      $myShipment-&gt;load($thisId)-&gt;getAllTrackings();
      echo "&lt;pre&gt;";
      print_r($myShipment);
      echo "&lt;/pre&gt;";
  
  }
  </code></pre>
  
  <p></code></p>
  
  <p>Please help,</p>
  
  <p>Thanks and Regards,
  Saurabh</p>