-
Notifications
You must be signed in to change notification settings - Fork 3
/
dm
executable file
·41 lines (38 loc) · 979 Bytes
/
dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# ------------------------------------------------------------------------
# dm - GT.M and PROFILE/Anyware direct mode script
#
# Description:
# This script will put the user in direct mode (GTM prompt) for the
# directory in which it resides.
#
# Input: None
#
# Output: Places the user at the GTM prompt (GTM>)
#
# Usage: dm or /directory_path/dm
# $ /ibsprod/dm
# or
# $ cd /ibsprod
# $ dm
#
# Setup: None
# ---------Revision History ----------------------------------------------
# 06/30/06 - Saurabh Jadia
# Modified the awk command to locate the ipcs resource id from
# the 'ipcsout' file.
# 04/23/04 - Rick Silvagni
# Added quotes around mftok to prohibit file substitution.
# ------------------------------------------------------------------------
# Processing starts at main()
ARG0=$0
if [ ! -f ${ARG0} ] ; then
echo "Usage: dm or /directory_path/dm"
return 1
fi
. `dirname ${ARG0}`/gtmenv
main()
{
$gtm_dist/mumps -direct
}
main