What is wrong with my shell scrip.
OOzy Pal
oozypal at gmail.com
Fri Jun 2 13:01:00 UTC 2006
I have not idea about shell scripting. I just googled and tried to
write this two liner script but it does not work.
What is wrong with it?
#!/bin/sh
myhome="home/oozy/System-Backup"
cp ~/.bashrc ${myhome}/Config/bashrc
cp /etc/hosts ${myhome}/Config/host
When I do debug I get this error
$ bash -v cpconfig
#!/bin/sh
myhome="home/oozy/System-Backup"
cp ~/.bashrc ${myhome}/Config/bashrc
cp: cannot create regular file
`home/hab/oozy/System-Backup/Config/bashrc': No such file or directory
.
.
.
--
OOzy
Kubuntu-Dapper
More information about the ubuntu-users
mailing list