2015-01-20 19:13:09 +01:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Pragmatic Software <pragma78@gmail.com>
|
2021-07-11 00:00:22 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2015-01-20 19:13:09 +01:00
|
|
|
use warnings;
|
|
|
|
use strict;
|
|
|
|
|
2022-01-23 16:49:23 +01:00
|
|
|
package Languages::ksh;
|
|
|
|
use parent 'Languages::_default';
|
2015-01-20 19:13:09 +01:00
|
|
|
|
|
|
|
sub initialize {
|
|
|
|
my ($self, %conf) = @_;
|
|
|
|
|
|
|
|
$self->{sourcefile} = 'prog.ksh';
|
|
|
|
$self->{execfile} = 'prog.ksh';
|
|
|
|
$self->{default_options} = '';
|
|
|
|
$self->{cmdline} = 'ksh $options $sourcefile';
|
2015-01-24 04:24:39 +01:00
|
|
|
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
$self->{cmdline_opening_comment} = ": <<'CMDLINE'\n";
|
|
|
|
$self->{cmdline_closing_comment} = "CMDLINE\n";
|
2015-01-24 04:24:39 +01:00
|
|
|
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
$self->{output_opening_comment} = ": << 'OUTPUT'\n";
|
|
|
|
$self->{output_closing_comment} = "OUTPUT\n";
|
2015-01-20 19:13:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|