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
8,068
Reaction score
6,920
Credits
65,503
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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top