04-08-2009
Thanks a lot for your help.
Just one question.
I know the exact path of media directory. How can incorporate that path in this command.
$sDirectory = "/www/sites/projects/media";
$sVideos = "/www/sites/projects/media/videos";
$sImages = "/www/sites/projects/media/images";
I am not very sure of how can i use this?
$sDirectory -type f -maxdepth 1 -name "*.mp4" -exec mv {} $sVideos \;
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have searched and searched google to do this and i want my websever to be able to run a php file everyday automatically. How do I go about doing this? Php is installed as an apache module not CGI.
Thank you! (3 Replies)
Discussion started by: christo16
3 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone:
I'm trying to make a CRON job that will execute Fridays at 7am. I have the following:
* 7 * * 5
I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list.
The CRON part I believe I understand, but I would... (6 Replies)
Discussion started by: Annorax
6 Replies
3. Shell Programming and Scripting
Dear all,
I have the following case,, i need to transfer a group of file from one server to another ....when the size of any of these file reach a specified value (Ex: 10MB) i need to transfer it to another server ....my problem is that i dont know how to determine when the size of the file... (1 Reply)
Discussion started by: mm00123
1 Replies
4. Shell Programming and Scripting
Move a file from windows directory to unix directory, is this possible?
if it is, can someone help me on this?
Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies
5. Shell Programming and Scripting
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies
6. Shell Programming and Scripting
Hi All,
I beginner in unix, i have no idea how to set the script file using cron job every 5 second. I also want to execute automatically the output to text file.This is my script name countsys.sh and my textfile abc.txt. (6 Replies)
Discussion started by: mastercar
6 Replies
7. Shell Programming and Scripting
OK,
So complete newbie here. I would normally do this in PHP or through my FTP program script but I can't in this case (the files are not coming from me, coming from a third party FTP upload).
I have an FTP server (Linux) accepting files coming in from a standard FTP program. Each file... (2 Replies)
Discussion started by: bull_frog
2 Replies
8. Shell Programming and Scripting
Hi all,
I'm having an issue with a script i wrote to pull information from the Amazon AWS API. Basically the script takes arguments from the command line and attempts to grab user information for each AWS access group. The command is issued like this:
# sh awsReport.sh <outputFileName>... (3 Replies)
Discussion started by: ChocoTaco
3 Replies
9. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have written a cron job to automate the sftp of files using key authentication.
I wanted to add a timeStamp and name of file sent to a log file and append each these details to the same file each time files are sent and if possible include whether the files were sent successfully or not.... (3 Replies)
Discussion started by: KidKoder
3 Replies
LEARN ABOUT DEBIAN
lavtrans
lavtrans(1) MJPEG tools manual lavtrans(1)
NAME
lavtrans - Convert MJPEG videos to other MJPEG video formats
SYNOPSIS
lavtrans -o outputfile -f a|q|i|w [-i num] lavfile1 [lavfile2 ... lavfileN]
DESCRIPTION
lavtrans can be used to convert the recorded videos from one MJPEG "container" format to another one. It can also be used to split the
streams, or do destructive edits.
Like all the other mjpegtools(1) lavtrans also accept a edit list file in place of actual video files. This allows it to be used to con-
struct a stand-alone copy of the editted video sequence described in the editlist.
Note that lavtrans can only change the container type of MJPEG video, not the format. As such it is not possible to use it combine streams
of different format.
OPTIONS
lavtrans accepts the following options:
-f [a|q|m|i|w]
Specifies the output format that should be saved.
a - output to AVI file
q - output to Qicktime file
i - output single JPEG images,
w - output WAV file (sound only!)
-i num
Convert a single frame to a JPEG file.
-o outputfile
Specifies the name of the output file If you want as output single JPEG images the output file string must be a valid format string
filename
Multiple filenames as input are acceped, also mixing of edit list files and other in video files.
BUGS
There seem to be problems with the transoding of large Quicktime movies. One other thing is that with interlaced movies only one field is
extracted. So you get pictures with the full horizontal size and half vertical size.
AUTHOR
This man page was written by Bernhard Praschinger.
If you have questions, remarks, problems or you just want to contact the developers, the main mailing list for the MJPEG-tools is:
mjpeg-users@lists.sourceforge.net
For more info, see our website at
http://mjpeg.sourceforge.net
SEE ALSO
mjpegtools(1), lavplay(1)
MJPEG Linux Square 2 June 2001 lavtrans(1)