- Posts: 246
- Thank you received: 0
Unix Script Error
17 years 8 months ago #20374
by Lindows
Unix Script Error was created by Lindows
Hi Guys,
Every time i run this script, it gives me error "file not found"
Any takes why. In my home director i created the two files needed
#!/bin/ksh
#Output the login name of everyone in the class who owns no file in
#the directory ˜mm64/public_html/x52.9545/homework.
#Sample use: delinquent
˜mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜mm64/public_html/x52.9545/homework | tail +2 |
awk ’{print $3}’ | sort | uniq > ˜/didhomework
comm -23 ˜/inclass ˜/didhomework
rm ˜/inclass ˜/didhomework
Every time i run this script, it gives me error "file not found"
Any takes why. In my home director i created the two files needed
#!/bin/ksh
#Output the login name of everyone in the class who owns no file in
#the directory ˜mm64/public_html/x52.9545/homework.
#Sample use: delinquent
˜mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜mm64/public_html/x52.9545/homework | tail +2 |
awk ’{print $3}’ | sort | uniq > ˜/didhomework
comm -23 ˜/inclass ˜/didhomework
rm ˜/inclass ˜/didhomework
17 years 8 months ago #20391
by DaLight
[code:1]
˜/mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜/mm64/public_html/x52.9545/homework | tail +2 |
[/code:1]
Replied by DaLight on topic Re: Unix Script Error
You missed out the forward slash before "mm64" in both of the above lines. Should be:˜mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜mm64/public_html/x52.9545/homework | tail +2 |
[code:1]
˜/mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜/mm64/public_html/x52.9545/homework | tail +2 |
[/code:1]
17 years 7 months ago #20687
by Lindows
Replied by Lindows on topic thanks alot
Thank you so much! Its the little things that make such a big impact on our lives.
Thanks again!
Thanks again!
Time to create page: 0.129 seconds