Jump to content


Photo

How to write a script


  • Please log in to reply
4 replies to this topic

#1 kookakal

  • Senior Member
  • 116 posts

0
Neutral

Posted 10 February 2009 - 07:06

hello all in my dm 800 i made a file mount.txt then i rename it to mount.sh in /usr/script chmod 755
script is this

#!/bin/bash

mount /dev/sda2 /media/hdd

exit0

in telnet mode this mounts my second partiton of my usb hdd with the movie folder created by me and recording works perfect.
what is wrong?

Re: How to write a script #2 gerrit

  • Senior Member
  • 1,473 posts

0
Neutral

Posted 10 February 2009 - 09:18

You tell us what is wrong... You do'nt tell us what you expect of the script, and what it is really doing.

As johnny 5 would say.. need input ;)
Droomdoos 7000 Droomdoos 600 pvr bij moeke Droomdoos 7025 met OLED Frysk oersetter foar Pli

Re: How to write a script #3 kookakal

  • Senior Member
  • 116 posts

0
Neutral

Posted 10 February 2009 - 11:35

just mount my external's usb hdd second partition wich has a movie folder in it to /media/hdd to record

Re: How to write a script #4 kookakal

  • Senior Member
  • 116 posts

0
Neutral

Posted 10 February 2009 - 18:12

problem solved

i wrote a script

mount /dev/sda1 /mount/hdd

works perfect

thnx

Re: How to write a script #5 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 12 February 2009 - 19:50

In other words: you specified the wrong partition and that's why it didn't work.

You might be a little bit more precise next time, saves us a lot of guessing.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users