how to run appium command on startup by using terminal

Viewed 19

I want to run appium program and see appium process running in terminal automatically on startup

I have created a simple bash script to run the appium command using gnome-terminal.

appium.sh

#!/bin/sh
gnome-terminal -- appium

and when I run the command by terminal ./appium.sh it works.

(Use `node --trace-deprecation ...` to show where the warning was created)
[Appium] Welcome to Appium v1.21.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723

but when I put in sudo nano /etc/xdg/lxsession/LXDE-pi/autostart to run the program automatically at startup.

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@lxterminal -e bash /home/pi/appium.sh  
@xscreensaver -no-splash

gnome-terminal opens successfully, but the appium command fails to run.

There was an error creating the child process for this terminal
Failed to execute child process “appium” (No such file or directory)

Is there something wrong ? please help

0 Answers
Related