shell - bash variable part of path -
i apologize if question has been answered before. search terms come generic useful.
in bash script, want parameter part of path. script says:
p=$1 sudo cp ~/work/niagara-root.1/build/$p/linux/vmlinux.64 /tftpboot/
i invoking with:
sh ~/.cpftp.sh taf-2948-im
and getting following error:
/home/meirs/.cpftp.sh: 5: /home/meirs/.cpftp.sh: /home/meirs: permission denied
just clarify: script has execute permission.
now when manually @ shell prompt, namely:
p=taf-2948-im cp ~/work/niagara-root.1/build/$p/linux/vmlinux.64 /tftpboot/
it works without hitch.
what missing?
thank you, 1 , all
meir shani
Comments
Post a Comment