#!/usr/bin/perl use strict; use warnings; # i have skipped many steps here for ease system("a2interf -i $t_dir -B -L lance_sg11"); # above call needs ctrl-c to be terminated # i.e. script a2interf needs ctrl-c to terminate