Running the script to invoke command in terminal

Dexter

I am trying to run it on the raspbian, the terminal pops up and stays blank/vanishes can anyone tell me why is this happening and how can I prevent this from happening , Kindly advice and thank you in advance.

#!/bin/bash
export PYTHONPATH=$1/env
nohup x-terminal-emulator -e $1/env/bin/python 
$1/Web_Server/run/script.py
#---------
Allan

After changing x-terminal-emulator by xterm -hold -e in the bash script we could manage to pop up a new terminal and run python!

#!/bin/bash
export PYTHONPATH=$1/env
nohup xterm -hold -e $1/env/bin/python $1/Web_Server/run/script.py

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Running a command in a new terminal instance in a bash script

分類Dev

Script running from terminal but not in crontab

分類Dev

Command works in terminal but not in bash script

分類Dev

Shortcut for running terminal command in VS code

分類Dev

Running a program from terminal, "command not found"

分類Dev

Printing the result of the script(running in background) on the terminal

分類Dev

Running script and defining object value in terminal window

分類Dev

Script to append records as found or in batches from Invoke-Command

分類Dev

Shell script wrapper to prevent running command with no arguments?

分類Dev

Running a shell script with and without "bash" command

分類Dev

real-time search in terminal output stream; after running a command

分類Dev

How to make the top bar of my terminal say what command is running?

分類Dev

Running an infinite loop in multiple command prompts using batch script

分類Dev

Command line input while a running script displays strange symbols

分類Dev

powershell - Invoke-Command : The value of the FilePath parameter must be a Windows PowerShell script file

分類Dev

Running Python File in Terminal

分類Dev

can not run the command from shell script but it's fine when typing directly into terminal

分類Dev

Switch encoding of terminal with a command

分類Dev

Mac Terminal "reset"command

分類Dev

terminal parts of a command expansion?

分類Dev

Terminal icon and command

分類Dev

ssh command not found in terminal

分類Dev

Script not connected to the terminal

分類Dev

Run Powershell script that prompts for credentials before running command against remote device

分類Dev

Scroll in terminal while Vim is running

分類Dev

Running a command on many files

分類Dev

powershell foreach name execute invoke-command

分類Dev

Terminal single command resource usage

分類Dev

Terminal command cd (change directory)

Related 関連記事

  1. 1

    Running a command in a new terminal instance in a bash script

  2. 2

    Script running from terminal but not in crontab

  3. 3

    Command works in terminal but not in bash script

  4. 4

    Shortcut for running terminal command in VS code

  5. 5

    Running a program from terminal, "command not found"

  6. 6

    Printing the result of the script(running in background) on the terminal

  7. 7

    Running script and defining object value in terminal window

  8. 8

    Script to append records as found or in batches from Invoke-Command

  9. 9

    Shell script wrapper to prevent running command with no arguments?

  10. 10

    Running a shell script with and without "bash" command

  11. 11

    real-time search in terminal output stream; after running a command

  12. 12

    How to make the top bar of my terminal say what command is running?

  13. 13

    Running an infinite loop in multiple command prompts using batch script

  14. 14

    Command line input while a running script displays strange symbols

  15. 15

    powershell - Invoke-Command : The value of the FilePath parameter must be a Windows PowerShell script file

  16. 16

    Running Python File in Terminal

  17. 17

    can not run the command from shell script but it's fine when typing directly into terminal

  18. 18

    Switch encoding of terminal with a command

  19. 19

    Mac Terminal "reset"command

  20. 20

    terminal parts of a command expansion?

  21. 21

    Terminal icon and command

  22. 22

    ssh command not found in terminal

  23. 23

    Script not connected to the terminal

  24. 24

    Run Powershell script that prompts for credentials before running command against remote device

  25. 25

    Scroll in terminal while Vim is running

  26. 26

    Running a command on many files

  27. 27

    powershell foreach name execute invoke-command

  28. 28

    Terminal single command resource usage

  29. 29

    Terminal command cd (change directory)

ホットタグ

アーカイブ