1 |
On 10/24/2005 1:04 AM Heinz Sporn wrote: |
2 |
|
3 |
>Am Sonntag, den 23.10.2005, 07:36 -0700 schrieb Drew Tomlinson: |
4 |
> |
5 |
> |
6 |
>> # Create symlink from original file to $newfile in $local_dir |
7 |
>> # specified above. |
8 |
>> ln -s "$original" "$local_dir/$newfile" |
9 |
>> |
10 |
>> |
11 |
> |
12 |
>Just a suggestion: insert a minimum of error handling like |
13 |
> |
14 |
>ln -s "$original" "$local_dir/$newfile" |
15 |
>if (( $? > 0 )) ; then logger -t "myscript" "That didn't work for some |
16 |
>reason ; fi |
17 |
> |
18 |
>... or something else at points where the script could fail. |
19 |
> |
20 |
> |
21 |
|
22 |
Good idea! |
23 |
|
24 |
Thanks, |
25 |
|
26 |
Drew |
27 |
|
28 |
-- |
29 |
Visit The Alchemist's Warehouse |
30 |
Magic Tricks, DVDs, Videos, Books, & More! |
31 |
|
32 |
http://www.alchemistswarehouse.com |
33 |
|
34 |
-- |
35 |
gentoo-user@g.o mailing list |