LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2016, 04:35 AM   #1
vampeta
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
wget to fix file size.. help pls


Hi guys,
i need to make a fix file size like 2048 or more from wget

i try to explain:

wget http://my.url -O- | head -c 2048 > myfile ( is not correct for my solution because when file size is 2048 it stop, close connection and exit. I need something loop all data come form wget to file without change the block size )

i can't use mknod..

any idea?? thx
 
Old 03-05-2016, 07:39 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
I do not understand what do you need, but:
wget | tee /dev/null | head
probably solves your issue. Or a perl/python/awk script, but you need to specify better.
 
1 members found this post helpful.
Old 03-05-2016, 09:49 AM   #3
vampeta
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
thx pan64, i try to explain better than before


my.url is a live webcam mpegts stream located in office

i need to look the stream in my house, in 3 player at the same time ( i no have band for download 3 stream togeter, so my idea is download over wget or curl the stream in server of my house, save loop/buffer file with fix size 2048 and restream over nginx http server

ps. i can't use ffmpeg or vlc, need to find a solution with curl or wget.

thx

Last edited by vampeta; 03-05-2016 at 09:50 AM.
 
Old 03-06-2016, 04:34 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
I see. how do you look that stream?
 
Old 03-06-2016, 07:59 AM   #5
vampeta
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
for look the stream i use a cheap player where have plugin for add http server address, port and if enable username and password.

i already test to wget the stream to http folder of nginx and it work.. i not know how i can make buffer file for be live...

need something like timeshift over wget

thx again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget: download if file size does not match any file in folder Si14 Linux - Software 1 04-21-2013 06:00 AM
Can't fix this checksum error ! Binary File ! My VERY FIRST Question ! help pls !!!! Zaher Programming 1 03-20-2006 09:35 PM
wGet is there a command for file size? SonoranFun Linux - Software 2 01-02-2006 03:56 PM
wget/curl problems PLS HELP tommmmmm Linux - Software 0 08-19-2005 03:58 AM
File size limit exceeded with wget jimdaworm Slackware 1 04-24-2005 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration