Reputation
446
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 4 11
Impact
~18k people reached

  • 0 posts edited
  • 1 helpful flag
  • 37 votes cast
1d
awarded  Famous Question
May
21
comment Can a command be executed without a shell?
I think you may have misread the question. The commands are not entered into a terminal, but are executed by an application. ssh@localhost works as I expect because the commands get run in a terminal environment. What I need is for the application to be able to execute the commands as though they are typed in a terminal without going through SSH and return the output, a command that creates the environment like ssh@localhost does, but a local one.
May
21
comment Can a command be executed without a shell?
@roaima I used the ssh@localhost method to test if it the problem was related to creation of the environment which turned out to be the case, but ssh@localhost incurs an overhead and it requires extra care with escaping strings which is why is not appropriate for my usage.
May
21
comment Is it possible to execute a binary without specifying the full path or the preceding './'?
I am developing the program with Lazarus and the commands are executed with the TProcess object. The directory is set via TProcess.CurrentDirectory and the command via TProcess.CommandLine
May
21
comment Can a command be executed without a shell?
The API I am using has a property called 'CurrentDirectory' and it switches to the 'CurrentDirectory' before executing 'Command'. It is not actually a shell, like bash. As I said 'ls -l' returns the correct output so 'Current Directory' is set properly.
May
21
comment Can a command be executed without a shell?
@roaima Preceding the command with 'ssh user@localhost' is an unnecessary overhead and there should be a way of creating the environment without logging in again via SSH
May
21
revised Can a command be executed without a shell?
edited title
May
21
asked Is it possible to execute a binary without specifying the full path or the preceding './'?
May
17
accepted Is there a gnu-as variant for targetting 64-bit code from a 32-bit system?
May
17
asked Is there a gnu-as variant for targetting 64-bit code from a 32-bit system?
May
15
comment Can a command be executed without a shell?
Do you mean that cd depends on the shell but ls does not? The problem is that if the ls command can list the directory contents correctly then why can't the executable which is already there not run?
May
15
comment Can a command be executed without a shell?
Why then does the 'cd` command not work?
May
15
asked Can a command be executed without a shell?
May
14
revised How can I add a toolbar button to KDE titlebars?
fixed spelling
May
14
accepted How can I add a toolbar button to KDE titlebars?
May
14
comment How can I add a toolbar button to KDE titlebars?
@doktor5000 Yes, I mean the windows title bar.
May
14
asked How can I add a toolbar button to KDE titlebars?
May
12
accepted Are there any well known and well used shell scripting IDEs for Un*x?
May
11
revised How can I append and prepend text to single line text output and save it all to one file?
fixed grammar.
May
11
revised How can I append and prepend text to single line text output and save it all to one file?
fixed grammar.