I have a Solution for my problem now!
I use "goto"! Now my script is working.
:-)
#!/bin/csh
set m_path = "/net/fileserv1/leiterplatten/gerberdaten/$1"
(ls *.inf *.hcp *.info *.hcpy *.gbr *.drl > dir.lst) >& error.lst
start:
if(! -z error.lst) goto nofile
if(-e...
I tryed to make the script as following:
#!/bin/csh -xv
ls *.inf *.hcp *.info *.hcpy *.gbr *.drl >& dir.lst
if(! -z dir.lst) then
echo no files to copy
else
echo ---------------------------------------------------------------------------
echo Files will be copied into folder...
Here my whole script:
#!/bin/csh -xv
if(-e *.inf||-e *.hcp||-e *.info||-e *.hcpy||-e *.gbr||-e *.drl)then
echo ----------------------------------------------------------------------------
echo Files will be copied into Folder $1 on server fileserv1
echo...
Thank you. It is a good idea. But it also doesen't work.
For information I work with solaris 1.1.1b.
Pherhaps it has a bug?
I can't upgrade to a higher solaris because I have a Software which does only work till solaris 1.1.1b.
Thank you. Bye.
Moreno
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.