Closed GoogleCodeExporter closed 8 years ago
that's weird, the script always print the link on exit.
Original comment by tokland
on 17 Apr 2012 at 8:19
Thats right, but If it would give it out as a parameter, it could easily be
integrated in the email.
Here is the part of my script:
videoupload.sh
youtube-upload --email='xxx@gmail.com' --password='xx' --title="$1"
--description="$2" --category="$3" --keywords="$4" --unlisted $5 && sendemail
-f xxx@gmail.com -t xxx@gmail.com -u "Video hochgeladen" -m "Das Video wurde
erfolgreich auf Youtube hochgeladen" -s smtp.googlemail.com:25 -o
username=tommy2181990 -o password='xxx'
the script runs on a debian server, with no gui. it is started as follow:
./videoupload.sh "Videotitle" "description" category "keywords" video.mp4
as soon as the video is uploaded I get the email with the text "Das Video wurde
erfolgreich auf Youtube hochgeladen" but I can't see the link, because the link
is only shown on the server (if i am connected via SSH it perfectly works).
I hope you can understand what my problem is, english isnt my native language ;)
Original comment by gigazuc...@gmail.com
on 17 Apr 2012 at 8:26
I don't understand "give it out as a parameter". The URL is written to the
standard output, that's the standard, you can do whatever you want with it:
URL=$(youtube-upload ...)
echo "Just uploaded video: $URL"
Original comment by tokland
on 17 Apr 2012 at 8:31
that might work, i will try it.
Thanks
Original comment by gigazuc...@gmail.com
on 17 Apr 2012 at 8:32
ok
Original comment by tokland
on 17 Apr 2012 at 8:38
Original comment by tokland
on 13 May 2014 at 2:55
Original issue reported on code.google.com by
gigazuc...@gmail.com
on 17 Apr 2012 at 8:11