Skip to content

Commit f631ce1

Browse files
committed
added script example
1 parent edff29a commit f631ce1

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

script/input_file.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I am the input file

script/job.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
host=`hostname`
2+
echo "I am running on $host"
3+
echo "I got the following parameters: $@"
4+
5+
mkdir -p hello/world
6+
touch hello/world.txt
7+
touch hello/world/something.txt
8+
touch test.txt
9+
10+
# show the input file
11+
cat input_file.txt
12+
sleep 60

script/script.job

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Executable = job.sh
2+
Universe = vanilla
3+
Output = script.job.$(cluster).$(process).out
4+
Error = script.job.$(cluster).$(process).err
5+
Log = script.job.$(cluster).$(process).log
6+
arguments = --process $(process)
7+
8+
should_transfer_files = YES
9+
when_to_transfer_output = ON_EXIT_OR_EVICT
10+
11+
request_cpus = 1
12+
request_memory=2
13+
14+
# use the ENV that is provided
15+
getenv = true
16+
17+
queue 2

0 commit comments

Comments
 (0)