mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1595] Execute commands #1064
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1064
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cjconstante on GitHub (Oct 8, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1595
Hi.
I am trying to execute more than 1 command with the option -c "", for example "command1; command2" but it just runs the first command. For the next, i get not found message.
If i run 1 command it works, if i add more, the next after the first, fail. There is any way to execute more than 1 command?
Thanks.
@Fred-Barclay commented on GitHub (Oct 8, 2017):
Hi @cjconstante
Can you give a specific example and output? Thanks!
@reinerh commented on GitHub (Oct 8, 2017):
That's because it interprets the argument as a single command, which of course it can't find.
@reinerh commented on GitHub (Oct 8, 2017):
@cjconstante Try running them as arguments for the shell:
$ firejail --quiet -c sh -c "ls; ls"@cjconstante commented on GitHub (Oct 8, 2017):
Thanks for the reply. I will try that way.
I found a solution: I created a bash script and there i type the commands i need. In the firejail command i pass -c myscript and it works.
Thanks.