hpc_get_hostname.lsf 418 B

1234567891011121314151617
  1. if (fileexists("temppath.txt")) {
  2. temppath = read("temppath.txt");
  3. len = length(temppath);
  4. temppath = substring(temppath,1,len-2);
  5. cd(temppath);
  6. if (fileexists("hostname.txt")) {
  7. hostname = read("hostname.txt");
  8. len = length(hostname);
  9. hostname = substring(hostname,1,len-2);
  10. cd(rootdir);
  11. } else {
  12. cd(rootdir);
  13. break;
  14. }
  15. } else {
  16. break;
  17. }