[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell



 

Bruce Smith wrote:

What kind of values are you passing to the script?
You realize the shell expands wildcards before they
hit the script, right?
 
Just a directory name such as "/var/tmp/scanmail.tmp009/unpacked". No wild cards used.
All the files that should be "typed" are in that directory.

I tested the example send with:  sh script /var/tmp/..../unpacked
The <ls> -does- list the contents of the directory properly
    /var/tmp/.../unpacked/filename009
The <type> just returns not found:  "/var/tmp/.../unpacked/filename009

And that is what I don't understand.

--- example---
command:

sh scan.1 /var/tmp//inorde/scanmails.N96BC6/unpacked

--- output ---
[User Doc - draft 1701-17.20.doc]
/var/tmp/inorde/scanmails.N96BC6/unpacked/User Doc - draft 1701-17.20.doc
scan.1: type: /var/tmp/inorde/scanmails.N96BC6/unpacked/User Doc - draft 1701-17.20.doc: not
found

[mm.6AmhHi]
/var/tmp/inorde/scanmails.N96BC6/unpacked/mm.6AmhHi
scan.1: type: /var/tmp/inorde/scanmails.N96BC6/unpacked/mm.6AmhHi: not found

---end example

Bert