Sponsored Content
Top Forums Shell Programming and Scripting Uploading photos to picasa using googlecl w/ single click Post 302434692 by Kingzy on Sunday 4th of July 2010 05:02:46 PM
Old 07-04-2010
Quote:
Originally Posted by 3junior
Code:
#!/bin/bash
google picasa post --title "$1" $2/*.jpg #  Add to an album

save the script to anyname.sh
chmod 755 anyname.sh
to upload pictures
./anyname.sh title path
ie. ./anyname.sh UNIXPICS /home/user/UNIXPICS
When I use this instead, for creating an album and uploading photos from it:

Code:
google picasa create --title "$1" $2/*.png

It still asks me to specify the title, when I want it to be named just like the folder I'm uploading photos from.

Also, the command fails even when I specify any title :S
 

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

uploading

can i upload the file using telnet from my computer to the internet ... let me repeat ... using putty telnet :) and whats the command ?? (6 Replies)
Discussion started by: SeeD
6 Replies

2. UNIX for Dummies Questions & Answers

Left click select,right click copy

Hi all, when i ssh into my linux machine, i can do a double left click and then right click to paste it anywhere i need. However, on the actual machine, in the terminal, i cannot do a double left click and right click to paste it. i need to right click and select Copy followed by click click... (1 Reply)
Discussion started by: new2ss
1 Replies

3. Shell Programming and Scripting

Delete Photos Script

Good Morning, I need to move a social networking site to another server and I need to delete a bunch of photos. The old site used to allow, our members, to upload up to 100 photos. Now I want to limit it to 10. How can I delete the remaining photos? Here is what it looks like: 2474-14637.jpg... (7 Replies)
Discussion started by: mpw5013
7 Replies
BINS(1) 						      General Commands Manual							   BINS(1)

NAME
bins_edit -- Set fields in XML picture description files for BINS SYNOPSIS
bins_edit [-a | --album ] [-m | --html ] [-t title | --title title ] [-e event | --event event ] [-l location | --location loca- tion ] [-p people | --people people ] [-y date | --date date ] [-d description | --description description ] [--longdesc longDe- scription] [--shortdesc shortDescription] [--sample pictureFileName] [-g tag=value | --generic tag=value ] [-h | --help ] [-v | --verbose ] [-q | --quiet ] [file] [files ...] DESCRIPTION
This manual page documents briefly the bins_edit command. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu- mentation in HTML in /usr/share/doc/bins/index.html as well as a --help option. bins_edit sets values in the XML picture description files that bins(1) uses to generate galleries. OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. file By default, file is the filename of the XML file with the image properties. If the argument has no .xml suffix, it is added, so you can directly give picture names on the command line. Spaces and other special characters (even newlines) can be used in val- ues given as parameters as long as they are enclosed between quotes. If the --album option is given, the filename refers to the directory of images, and the album.xml in that directory will be modi- fied instead. -a --album edit album description (instead of the default of editing the image description.) In this case, the file parameter must be the source directory of the album. Only the --title, --longdesc, --shortdesc and --sample switches make sense with this option. -m --html input value will be interpreted as HTML code, thus, no HTML encoding or quoting will be done. -t title --title title Set the title (of an image.) -e event --event event Set the event name (of an album or image.) -l location --location location Set the location (of an image.) -p people --people people Set the list of people (of an image.) -y date --date date Set the date (of an image.) -d description --description description Set the description (of an image.) --longdesc longDescription Set the long description (of an album.) --shortdesc shortDescription Set the short description (of an album.) --sample pictureFileName Select the sample picture, within this album, to be used on the album list (template subalbum.html.) Note that the filename is relative to the album directory, and thus doesn't have a directory component. -g tag=value --generic tag=value This lets you set arbitrary fields in the relevant XML file (of the image or the album.) Generic tags appear inside description which appears inside image; the tag appears as the name attribute of a field element, and the value appears as the content of the element. -h --help Gives quick help (which this man page is based on.) -v --verbose This switch can appear several times to increase verbosity level. -q --quiet Suppress output. EXAMPLES
Set the title of the Image.jpg file to "My picture": bins_edit -t "My picture" Image.jpg Set the title and location of all JPEG pictures in the directory: bins_edit --title Holiday --location Paris *.jpg Use of HTML values: bins_edit --html --description '<b>BINS</b> is cool' file.jpg Set the title short description and sample image of the album in the current directory (note the dot as final parameter): bins_edit -a -t "My Album" --sample image.jpg --shortdesc "This is my album" . SEE ALSO
bins (1). AUTHOR
This manual page was written by Mark W. Eichin eichin@thok.org for the Debian system (but may be used by others). As it is mostly derived from the bins_edit program itself, it is covered by the GNU General Public License. BINS(1)
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy