You really
DON'T want to use csh as a programming shell, but I know, "to each his own".
That being said, you aren't even writing the script in csh, you are using sh or bash syntax and then trying to send that to the csh interpreter.
Try this instead:
Code:
#!/bin/bash
echo write something:
read lala
datum=`grep $lala /var/log/changelog | tail -1 | awk '{print $2 " " $3 " " $4 " " $5}'`
echo Datum......: $datum
You will also need to run "chmod +x script" to make it executable.
If you REALLY want to use csh, then you will need to convert your script to use csh syntax (note, there is no "read" command in csh).
HTH
Forrest