Domande taggate «scripts»

Uno script è una serie di istruzioni scritte in un file di "testo normale". L'interprete di script (ad esempio, Bash o un'altra shell, Python, Perl, Ruby, ecc.) Legge il file ed esegue le istruzioni come se fossero state immesse al prompt dei comandi.

6
Lo script di avvio non si avvia
Ubuntu 10.04 Ho creato questo script upstart ( /etc/init/pure-ftpd.conf ): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit 10 5 pid file /var/run/pure-ftpd.pid console output pre-start script test -x /usr/local/sbin/pure-ftpd || { stop; exit 0; } end script exec /usr/local/sbin/pure-ftpd …




1
Aggiungi la variabile d'ambiente a .bashrc tramite script
Ho bisogno di aggiungere le seguenti righe alla fine del file .bashrc in Ubuntu. Come posso aggiungere automaticamente queste righe usando uno script? Se eseguo lo script, inserisce automaticamente le righe alla fine del file .bashrc. export APP="/opt/tinyos-2.x/apps" export TOS="/opt/tinyos-2.x/tos"
31 scripts  bashrc 

3
Nascondere l'output di un comando
Ho uno script in cui controlla se un pacchetto è installato o meno e se la porta 8080 viene utilizzata o meno da un determinato processo. Non ho alcuna esperienza con bash, quindi ho fatto qualcosa del genere: if dpkg -s net-tools; then if netstat -tlpn | grep 8080 | …
31 bash  scripts 




7
Come posso testare uno script di shell in un "ambiente sicuro" per evitare danni al mio computer?
Vorrei installare un certo script bash chiamato 42FileChecker usando i comandi: git clone https://github.com/jgigault/42FileChecker ~/42FileChecker && cd ~/42FileChecker && bash ./42FileChecker.sh Ma non so se 42FileChecker.sh farà cose strane sul mio PC perché sono un principiante e non so cosa sta succedendo in quello script. C'è un modo per eseguirlo …






Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.