scripting question

Peter ubuntu at ourvirtualhome.com
Fri Nov 10 16:53:55 UTC 2006


I know you say the directory is present and rwx for the user, but I
would make sure of that cause the error message indicates a problem with
the writing the file.

Steps to try:
Login is as the user
goto the /usr/tmp
type touch price
If this works I'll be clueless to know what the problem is.
To be honest I don't think it will work as the script is failing.

If you still have a problem post some more info:
What Ubuntu version are you running?
What shell is the user running?
What are the rights at /usr/tmp?

Peter

On Tue, 2006-10-24 at 21:55 -0500, Linda Hanigan wrote:
> I apologize if this posts twice. I sent it earlier and it did not show
> up. I am migrating a bunch of programs from RH 7.3 to Ubuntu. I am
> having
> problems with some of my  shell scripts. Below is the first lines of the
> script through the line that causes the error and the error. This has
> always worked even back to the 1980 with unix any idea what I need to
> do? The /usr/tmp directory is present and rwx by the user running the
> script. The script is suppose to create the file.
> 
> # Mprice_ prints missouiri price list
> TEMP=/usr/tmp/price
> show=MO
> echo "What type of price list do you want? (Q P)"
> read style
> echo "How many copies do you want? "
> read copies
> echo "^[E
> " > $TEMP
> 
> /usr/local/lbin/Tent/Mprice_: line 9: /usr/tmp/price: No such file or
> direc tory
> 
> 
> Thank you so much
>         Linda
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061110/733b4be6/attachment.sig>


More information about the ubuntu-users mailing list