| 1. Delete the ugly "^M" from Window |
| (a) cat source_file | tr -d '\r' > dest_file |
| (b) dos2unix -o source_file |
| 2. Check the enviroment varialble with contains "SAS_CCF" |
| env | grep SAS_CCF |
| 3. A simple shell script from MPE (http://wave.xray.mpe.mpg.de/xmm/cookbook/general/sh_example.txt) |
| 4. A simple perl script from MPE (http://wave.xray.mpe.mpg.de/xmm/cookbook/general/perl_example.txt) |
| 5. Get your own IP address. |
| /sbin/ifconfig eth0 | grep "Bcast:" | tr -s ' ' ' ' | cut -d ' ' -f3 | cut -d ':' -f2 |
| 6. __ctype_b problem |
| Edit a new_define.c file with the following content. |
| #include < ctype.h > |
| __const unsigned short int *__ctype_b; |
| __const __int32_t *__ctype_tolower; |
| __const __int32_t *__ctype_toupper; |
| void ctSetup() |
| { |
| __ctype_b = *(__ctype_b_loc()); |
| __ctype_toupper = *(__ctype_toupper_loc()); |
| __ctype_tolower = *(__ctype_tolower_loc()); |
| } |
| Then compile it without link. |
| gcc -c new_define.c |
| When you compile yourcode. |
| gcc -o yourcode newdefine.o yourcode.o |
| 7. A simple SM script |