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
10,683
Reaction score
9,176
Credits
88,690
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
 

Members online

No members online now.

Top