i am working on creating a Gui environment on a Ubuntu OS.
i have a .pl file.
i need to open a /run/auto.txt file for editing in a new window, so user can edit the file manually. You know if i was using vi editor, i would have vi /run/auto.txt and it will open auto.txt in a new window so i can edit and wq! when i am done.
Below is my code and i put some comments in the code so you can see where i want my file to be open.
Any help would be greatly appreciated.
i have a .pl file.
i need to open a /run/auto.txt file for editing in a new window, so user can edit the file manually. You know if i was using vi editor, i would have vi /run/auto.txt and it will open auto.txt in a new window so i can edit and wq! when i am done.
Below is my code and i put some comments in the code so you can see where i want my file to be open.
Any help would be greatly appreciated.
Code:
sub beforeDrainRecoveryNotes
{
$file = "$runDir/auto.txt";
while((my $key, my $value) = each %stationSelected)
{
if($value)
{
if(my $pid = fork) { $pids{$pid}++; }
else
{
# &runSysComm("$binDir/win $key");
# This is where i want to open the auto.txt file in
# new window so user can edit this file.
# After editing is done, user will save and close the file
# preferbally using wq!
CORE::exit();
}
}
}
printErr();
}
Comment