-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstarter
More file actions
executable file
·56 lines (38 loc) · 827 Bytes
/
Copy pathstarter
File metadata and controls
executable file
·56 lines (38 loc) · 827 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/perl
$window = shift @ARGV;
$interactive = shift @ARGV;
$username = `whoami`;
chomp $username;
$masterLog = "/home/student/jourmeob/.myTalk/masterLog.txt";
$LOGFILE = "/home/student/" . $username . "/.myTalk/log.txt";
system("tail -s 1 -f '$masterLog' >> '$LOGFILE' &");
if($window eq "nw")
{
if($interactive eq "true")
{
system("~/.myTalk/tailTalk '$LOGFILE' ");
}
else
{
system("~/.myTalk/tailTalk '$LOGFILE' &");
}
}
elsif($window eq "local")
{
system ("x-terminal-emulator -e ./tailTalk '$LOGFILE' &");
}
elsif($window eq "localnw")
{
if($interactive eq "true")
{
system("./tailTalk '$LOGFILE' ");
}
else
{
system("./tailTalk '$LOGFILE' &");
}
}
else
{
system("x-terminal-emulator -e ~/.myTalk/tailTalk '$LOGFILE' &");
}