T
T
timkin12018-11-10 23:55:48
C++ / C#
timkin1, 2018-11-10 23:55:48

How to execute two commands in one execl?

Hello!
Can you please tell me how to execute two commands at once in one execl call?
Like ls and rm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-11-11
@saboteur_kiev

"ls file; rm -f file"
"ls file && rm -f file"
"ls file || rm -f file"
whichever you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question