launch .sh from desktop half work-

I have a .sh script Call mainSc.sh which look like this :

#!/bin/bash { cd /home/myrepository export LD_LIBRARY_PATH=/home/myrepository/build/src/ ./myscript.sh | python mypythonscript.py } || { notify-send "it didn't work..." } 

And my problem is when I launch it from terminal (./mainSc.sh ) it work fine and when I try to launch it from the .desktop I created, it launch and work until ./myscript.sh and my python script does not work... I really don't understand why....

thanks a lot !

Replay

This behavior can be explaned easily if you are dealing with the standard input in myscript.sh (waiting for user input, for example). As no terminal is attached, your script terminates, just like cat would do, for instance.

Category: command line Time: 2016-07-29 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.110 (s). 12 q(s)