0
votes
1answer
407 views

how to shutdown ubuntu server from shell script?

I wrote a simple shell script to shutdown ubuntu server. then created a cron job to execute this script at 23:59 everyday. #!/bin/bash sudo shutdown -h now I got this error message "sudo: no tty ...
0
votes
1answer
670 views

executing a shell-script through makefile

i am trying to create a .deb file that first installs the dependency that is stored in the some folder, for that i have created a shell script. My issue is executing the shell script through make file ...
3
votes
3answers
776 views

How to auto source a shell script?

How to make a shell script execute it's commands as source commands without having to use "source scriptname.sh" expression to launch the script? Basically what I want is to type ./scriptname.sh and ...
0
votes
2answers
2k views

Automounting SD card when inserted in Ubuntu

I am trying to write a BASH script that automounts an SD card once it is inserted in the card reader, then move all pictures to a folder in the HDD and renaming each file to the date and time the ...
0
votes
2answers
228 views

Script won't stop cleanly

I wrote this small shell script to start a gunicorn WSGI server for my django app. I'm running it on Ubuntu 12.04, and the script starts cleanly and runs like it's supposed to. The problem is that ...