Terminal use of Perl

EmilioM

New Member
Joined
Dec 2, 2022
Messages
4
Reaction score
0
Credits
37
I have the following information that I need to write in a Terminal

perl twpolmake.pl twpol.txt > twpol.txt.new
twadmin -m P -c tw.cfg -p tw.pol -S site.key twpol.txt.new

and my question is:
Do I have to write the first line and press enter and then write the second one and press enter or is only one line to be written like

perl twpolmake.pl twpol.txt > twpol.txt.new twadmin -m P -c tw.cfg -p tw.pol -S site.key twpol.txt.new
 


KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
9,116
Reaction score
7,737
Credits
74,434
If the command doesn't work as a single line, you can try adding '&&' between the two commands. Like:

Code:
perl twpolmake.pl twpol.txt > twpol.txt.new && twadmin -m P -c tw.cfg -p tw.pol -S site.key twpol.txt.new
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top