The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-07-2008
HPAVC's Avatar
HPAVC HPAVC is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 106
Angry

Quote:
Originally Posted by nabmufti View Post
[code]:

#!/bin/bash
alarmfile= `cat ~/alkatel.txt`
not sure if intended or accidental but remove that space between = and `

#!/bin/bash

set -x
#alarmfile= `cat ~/alkatel.txt`
alarmfile=`cat ~/alkatel.txt`


also in your scripts you might add "set -x" to see the commands as they run to help debugging