{"id":22413704,"url":"https://github.com/jsta/wisc_chtc_examples","last_synced_at":"2026-01-07T01:05:11.920Z","repository":{"id":88675743,"uuid":"323700101","full_name":"jsta/wisc_chtc_examples","owner":"jsta","description":"Worked examples and templates for the Wisconsin CHTC","archived":false,"fork":false,"pushed_at":"2021-05-11T18:16:08.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T08:48:57.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-12-22T18:09:52.000Z","updated_at":"2021-05-11T18:16:11.000Z","dependencies_parsed_at":"2023-03-13T18:19:31.498Z","dependency_job_id":null,"html_url":"https://github.com/jsta/wisc_chtc_examples","commit_stats":{"total_commits":81,"total_committers":1,"mean_commits":81.0,"dds":0.0,"last_synced_commit":"300ec38715574fca5f9e30d9787975b11b8ec82d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwisc_chtc_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwisc_chtc_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwisc_chtc_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwisc_chtc_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/wisc_chtc_examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245777330,"owners_count":20670521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T14:14:22.063Z","updated_at":"2026-01-07T01:05:11.887Z","avatar_url":"https://github.com/jsta.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Worked examples and templates for the Wisconsin CHTC\n\n### Submit file\n\nEvery CHTC job has a \"submit\" file which specifies 1) The path to an `executable` shell script and 2) the paths to one or more `transfer_input_files` to transfer to the job server.\n\n\u003cdetails\u003e\n\u003csummary\u003eSubmit file template\u003c/summary\u003e\n\n```\n# template.sub\n# starter submit file for CHTC jobs\n\nuniverse = vanilla\nlog = job_$(Cluster).log\nerror = job_$(Cluster)_$(Process).err\noutput = job_$(Cluster)_$(Process).out\n\nexecutable = \narguments = \n\nshould_transfer_files = YES\nwhen_to_transfer_output = ON_EXIT\ntransfer_input_files = \n\nrequest_cpus = 1\nrequest_memory = 1GB\nrequest_disk = 1GB\n\nqueue 1\n```\n\n\u003c/details\u003e\n\n### Executable shell script\n\nEvery CHTC job has an executable shell script that optionally sets up job files/environments and runs commands/scripts.\n\n\u003cdetails\u003e\n\u003csummary\u003eShell script template\u003c/summary\u003e\n\n```\n#!/bin/bash\n\n# setup job files/environments\ntar -xzf jobfiles.tar.gz\n\n# run an R/python/other script\npython jobscript.py\n```\n\n\u003c/details\u003e\n\n## Cheatsheet\n\nRun an interactive job with: `condor_submit -i sub_file`\n\n[Transfer files using `scp`](https://chtc.cs.wisc.edu/connecting.shtml): \n\n```shell\n# push\nscp file username@submit2.chtc.wisc.edu:/home/username\n# pull\nscp username@username@submit2.chtc.wisc.edu:/home/username/file ./\n```\n\nRemove \"held\" jobs\n\n```shell\ncondor_rm $JOB_ID\n```\n\n## Links\n\nhttps://chtc.cs.wisc.edu/\n\nhttps://github.com/CHTC/chtc-website-source\n\nhttps://chtc.cs.wisc.edu/file-avail-squid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fwisc_chtc_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Fwisc_chtc_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fwisc_chtc_examples/lists"}