04-15-2014
FTP Photo using Linux script
Please provide sample linux shell script to retrieve a photo from a Panasonic Security camera using a http command and then transfer to ftp server. I am using Linux O/S 2.6.32 KERNEL
Script steps:
Retrieve still picture from a Panasonic camera using the following http command alarmserver/cgi-bin/camera?resolution=1920 This command will retrieve a still picture from my Panasonic camera and display it in my browser. I am able to use the browser “Save As” command to save this picture as a .jpg file. The default photo file name is camera.jpg, but I want the file name to be Bus1+<current date and time>.jpg
Transfer this picture to my windows FTP server site “EventPhotos” at 10.0.0.51
User: busprotect
Password: busprotect
The picture name should be Bus1+<current date and time>.jpg
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
2. Shell Programming and Scripting
Hi,
Please advice whether my below requirement is feasible,
My requirement : Automated FTP from linux server to windows server using a shell script on every monday.
If feasible, please help me how to do this ?
Thanks in advance (2 Replies)
Discussion started by: apsprabhu
2 Replies
3. Shell Programming and Scripting
Hi,
I have a ftp script which first gets all the file names and echo's the latest file.
I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter is not accepted by second ftp. The error message i'm getting is
> Rename Temp File calloc:ICMP... (5 Replies)
Discussion started by: ammu
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I've got an issue with a shell script that FTP's a file from one Linux server to another Linux server.
My script runs on a Linux server and creates an output file (from a database call), and then FTP's this file to another Linux server.
The problem is that, even though the output file... (0 Replies)
Discussion started by: roysterdoyster
0 Replies
5. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have 9 different linux based servers and i am automating there healthcheckup by doing ssh and fetching deviations out of it in a single text file. I am doing so by using ssh keygen. I am done with the above part .
Now i want to ftp that text file to my windows XP desktop and i want to... (4 Replies)
Discussion started by: gemnian.g
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have an ftp loop script which I was going to use to login to various Linux systems but as It's my first connection I'm being prompted to add it to the known_hosts. Can this script be modified to reply 'yes' before passing the user/pass ?
usname="someuser"
pass="somepass"
while read... (1 Reply)
Discussion started by: Grueben
1 Replies
TELAK(1) TELAK(1)
NAME
telak - draw local or remote pictures on your root window
SYNOPSIS
telak [options]
DESCRIPTION
telak is a program that draw local or remote pictures on your root window. This is very useful if you want to have webcam, graphs or some-
thing like this drawn above your wallpaper.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-h --help
Show summary of options.
-v --version
Show version of program.
-d --display
Specify display.
-c --config
Specify configuration file.
--cache
Specify cache directory.
CONFIGURATION FILE
The format is pretty simple. Each image have to be declared in a section, which is defined like this: [image_name]
After this, you will have to declare options you want.
url = <url or path>
URL (http, ftp) or path (/home...) to your picture. MANDATORY.
width = <size in px>
Force the width of the picture to X.
heigth = <size in px>
Force the heigth of the picture to X.
x = <position in px>
Position of the image.
y = <position in px>
Position of the image.
refresh = <time in seconds>
Reload image every X seconds.
reverse = <1 or 0>
Reverse color mode.
EXAMPLE
Here is a telakrc example.
[test]
url = /home/staff/acid/test.jpg
width = 100
height = 100
x = 800
y = 600
reverse = 0
[photo]
url = http://www.somedomaine.com/somepath/arf.png
x = 200
y = 0
refresh = 300
reverse = 1
FILES
~/.telak/telakrc
Main configuration file.
~/.telak/cache
Default cache directory.
AUTHOR
Julien Danjou <julien@danjou.info>
HOMEPAGE
http://julien.danjou.info/telak.html
February 8, 2005 TELAK(1)