GrouchyGaijin
May 19th, 2013, 02:26 PM
Hi Guys,
I have a bash script that uploads videos to YouTube.
#!/bin/bash
cd /media/Elements/"Video Staging"/
read -p "Enter a title for the video:" titletext
read -p "Enter a description:" desc
read -p "Enter the file name:" video
""youtube-upload --unlisted -m email -p password -t "$titletext" -c People --description="$desc" "$video"
The script and the YouTube uploader that makes everything possible run well.
After a video has been uploaded the url for that video is displayed in the terminal.
Is there a way I can have that url saved automatically to a text file? I've looked around a bit and saw something called "script".
When I entered script path/to/text/file the upload script everything seemed to come to a stop and I was given a new prompt.
Obviously this is not the way to go.
Does anyone know how I can do this?
I have a bash script that uploads videos to YouTube.
#!/bin/bash
cd /media/Elements/"Video Staging"/
read -p "Enter a title for the video:" titletext
read -p "Enter a description:" desc
read -p "Enter the file name:" video
""youtube-upload --unlisted -m email -p password -t "$titletext" -c People --description="$desc" "$video"
The script and the YouTube uploader that makes everything possible run well.
After a video has been uploaded the url for that video is displayed in the terminal.
Is there a way I can have that url saved automatically to a text file? I've looked around a bit and saw something called "script".
When I entered script path/to/text/file the upload script everything seemed to come to a stop and I was given a new prompt.
Obviously this is not the way to go.
Does anyone know how I can do this?