Skip to main content

Unix Script Error

More
17 years 1 month 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
More
17 years 1 month ago #20391 by DaLight
Replied by DaLight on topic Re: Unix Script Error

˜mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜mm64/public_html/x52.9545/homework | tail +2 |

You missed out the forward slash before "mm64" in both of the above lines. Should be:
[code:1]
˜/mm64/bin/roster 45 | sort > ˜/inclass
ls -l ˜/mm64/public_html/x52.9545/homework | tail +2 |
[/code:1]
More
17 years 1 month 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!
More
17 years 1 month ago #20696 by DaLight
Replied by DaLight on topic Re: Unix Script Error
Tell me about it!
Time to create page: 0.134 seconds