Programming :: SED Processing - Export Progress Bar From Wget Display
Nov 2, 2010
I am attempting to "export" the progress bar from wget display using sed. Basically, we have an app that starts wget to download a large file and we want to show a progress bar. Our application has a dbus interface to receive the download progress.
So we were think of a command like:
wget [] | sed [] | dbus-send[]
The problem at the moment is, how do you get the matched string out of sed and into dbus-send? I can get the progress string by:
sed -u 's/[0-9]*%/&/'
This populated '&' with the correct percentage, but I cannot seem to get this out of sed.
View 9 Replies
ADVERTISEMENT
May 16, 2010
A quick google search gave me a possible answer at this post: [URL] However, this isn't my question exactly. It sort of is, but the answer is not correct for me. I'm wondering how to show progress of a cp or mv command. The man page says -v should do it, but it seems it doesn't show any progress at all. Is it possible to show progress info with cp or mv? Or, is there a different command I could use that would show a progress bar. I know for example scp will show a progress bar, but that is for local-->remote or visa versa, but I'm trying to copy locally.
View 4 Replies
View Related
May 6, 2011
I am trying to run matlab on a remote mac through my laptop at home, which is a linux-based. I am not able to export the display. Here are the steps I followed.
1. xhost +remotehost
2. Log into remotehost (i.e., the mac machine)
3. export DISPLAY="192.168.2.2:0.0"
4. matlab
But I get the following message,
"unable to open display 192.168.2.2:0.0"
The reason I typed in that ip address in step 3 was that is the ip listed in the "wlan0" block when I typed "ifconfig -a" on my local linux laptop.
View 6 Replies
View Related
Jan 20, 2010
i am getting below error message when i am trying to install a product
InstallShield Wizard
Initializing InstallShield Wizard...
Preparing Java(tm) Virtual Machine...\
[code]....
View 1 Replies
View Related
Aug 20, 2011
Exporting display from a Linux terminal to a Linux desktop is easy; you do the following:
On 192.168.90.121 (localPC):
xhost + 192.168.10.164
On 192.168.10.164 (remotePC):
export DISPLAY=192.168.90.121:0.0 <br/>
firefox
The Firefox window appears on my localPC. In the above case both PCs are Linux.
Can I similarly export the Linux display to a Windows PC? In the above example, localPC would be Windows and remotePC would be Linux.
View 1 Replies
View Related
Jul 2, 2010
After logging in with Putty, isn't there a way to generate a GUI display?
View 1 Replies
View Related
Jun 16, 2011
Is it possible to get WGET to only show download progress e.g. download bar, opposed to all of the connection info, as it does look a little ugly on the client side, is this possible to do?
View 2 Replies
View Related
Jan 20, 2010
I'm using this command: wget --convert-links -np --wait=20 --limit-rate=20K -m -k -p -U Mozilla -c [URL]
I can only use konqueror (asus eeepc 701) to completely view kneetest.html . The image taimoshan-front-qtr.jpg does not show, but if I right click and save, I can view the jpg. I was able to see this jpg earlier in the day, but not now. I've wget'd the site about 5 or 6 times in a day and sometimes I'll miss 2 images. I've also tried without the -U Mozilla option. BTW: Is there a way to get Mozilla to read files from wget?
View 6 Replies
View Related
Aug 17, 2010
I'm new to Ubuntu and I'm remote from the server. I'm setting up an Ubuntu server 10.04 x64. My intention is to load Oracle 11g, however I know I will need to be able to export an X display back to my desktop (Solaris) to run the Oracle installer. What do I need to load to get X working enough to export the display back to myself. I need to provide additional information. Since I'm new I may not have adequately covered what's needed.
View 4 Replies
View Related
Mar 9, 2009
After searching I cant find script that can deal with directories. All the found scripts work file to file and not directory to directory. Someone know script that can deal with all this situation?
View 8 Replies
View Related
Oct 31, 2010
I would really like to capture the output of scp and my file's progress. Scp updates the transfer rate every 1 second, and I will like to save the transfer rate at every update. So for example, if the file transfer takes 30 seconds, I would like 30 reports of the transfer rate.
The output looks like:
Code:
file.dat 1% 3664KB 938.5KB/s 05:48
Whenever I try a simple redirect like:
Code:
scp file.dat 192.168.1.100:~/ &> output
... it does not save the rate at every update, it only shows the final rate.
If I try using typescript by starting "script" ... it's the same deal.
View 7 Replies
View Related
Nov 25, 2010
I've got a loop which is able to echo out how complete a process is after each loop (e.g says 25% if the loop has 4 elements and has run once through). Is there any way I can print characters, perhaps a progress bar? I was thinking of using the percentage as a count or something and using.
Code:
I got told off for including code from work here.
View 14 Replies
View Related
Apr 26, 2009
I'm writing a script to automate rsync backups which so far is working great. I prefer to send output to a text file instead of watching it fly by but the blank output is slightly boring? I would love to use a progress bar. Not for each file but for overall progress. Something like
syncing /home directory 50% [++++++++]
I already know it's way over my head and maybe bash isn't even the right tool for the job.
View 4 Replies
View Related
Apr 14, 2011
I am busy writing this script to get a pixel count of a large batch of images in a directory for a research project. To do this I'm using a loop to get all the images in the directory. To make the whole procedure more user friendly for some colleagues I decided to use zenity, something I haven't yet really worked with. As not to make sure that the users don't have to watch to this blank screen during the actual processing of the images I'm trying to get the zenity progress bar working. So far the progress bar comes up but instead of changing over time it stays "empty" till all the images are processed and then becomes 100% when all images are done. What servers my needs for now, but since I am trying to learn more about zenity I was wondering how I could change the script to get the progress bar properly working? Below is the piece of script I am talking about.
Code:
cd $input #goto path of image directory
(for a in *jpg *JPG *jpeg *JPEG; do
if [ -f "$a" ]; then #was it a image file
b="$a" #set b to $a
convert -resize 1000x1000! ${b} -depth 1 -format %c histogram:info:$b.txt #get pixelcount and write to .txt file
fi
done) | zenity --progress
View 2 Replies
View Related
Jun 12, 2010
seahorse export menu is always disabled. I need to export the passwords to restore it after formatting my machine.
View 1 Replies
View Related
Aug 25, 2010
I am trying to extract a web page via Google for processing. I am able to create a proper query and test it using cut/paste into the address bar of my firefox browser.
When I attempt to extract the page with wget:
wget -O - -q "$query"
I do not see the information that is present when I used the browser.
View 2 Replies
View Related
Jun 9, 2011
I'm attempting to learn 'processing', the language used on the Arduino but I am having a bad time finding resource because of the poorly chosen name. What I am trying to do is open a pipe to another process/program to use as input to the processing plot program I am writing. I found processing.org but that site is not very helpful. There is plenty of examples of reading from an Arduino from the serial port but I want to read from a program running on my laptop. Both the plot and data accumulator program in the same PC.
View 3 Replies
View Related
Aug 23, 2010
I am looking for some suggestions if possible, regarding processing the files using perl script. Scenario is I have a location where new files will be added always. I need to process these files for some validation. I wrote a perl script to do this and I thought I can rename the files once they are processed in that way I dont process the same files again. But now I can't rename the files due to some restrictions. Second thought, to process them based on date stamp but as my perlscript is being automated and runs every one hour to process the files I can't go by date stamp.
View 5 Replies
View Related
Aug 7, 2010
i have written a bash script to convert flv files (e.g. videos) to xvid to be played on my dvd player. the conversion is not really the issue, as it works. what i am dealing with now are 2 problems i have not found a good workarouond:
1. surpressing the shell output of mencoder completely ( i do not want to see all the mencoder messages). this i have only solved to a certain extend.
2. i want to create a progress bar. this one i have not yet cracked.
the script:
code:
#!/bin/bash
## settings
v_bitrate=768
video_opts="-ovc xvid -xvidencopts bitrate=$v_bitrate:autoaspect"
audio_opts="-oac mp3lame -lameopts fast:preset=standard"
store_dir=./converted_files .....
#start the script
main_menu
1. mencoder output: using /dev/null works more or less. for example: if mencoder detects a double frame while converting, a message is still printed on the bash screen
2. progressbar: i have no clue yet on how to do this. any link or tip is welcome.
my goal is something like this:
[56%] [time in progress] [timeleft]
View 7 Replies
View Related
Mar 1, 2010
New to Fedora (from Windows), I am up and running ok with packages from the repository but only half ok with Processing, the Java graphics programming front end from processing.org.Their download gave me a .tgz file which Package Manager extracted for me into a location of my choice and where there is now a "processing" shell script.This works ok and I have managed to create a launcher on the desktop. That starts ok but always with processing's default action of giving you a new and automatically named work file.In Windows an existing Processing file (.pde file) could be "opened-with" Processing. Trying to do similar in Fedora I find that I am expected to nominate an Application to open with but Processing has not installed as an application.I guess the question is how do I promote Processing to be an Application?Or is there a different approach?
View 4 Replies
View Related
Nov 16, 2010
I am developing using vb6 to export a chart (line graph) to OpenOffice Calc. I am using:
Code:
Chart.diagram = Chart.CreateInstance("com.sun.star.chart.LineDiagram") to create the LineDiagram. However, it is just a line diagram. What I need is a line graph with points plotted on it. How can I make it to LineDiagram with LINES AND POINTS?
View 7 Replies
View Related
Jan 26, 2011
I'm playing around with some shell scripting and I've got a directory call CS005 and I'm trying to write a script to I can locate to the directory really quick and easy.
export CS005DIR=/home/stud/0/043234/CS005
Now I get this error
CS005DIR=/home/stud/0/043234/CS005 No such file or directory.
This is because I've got numerical values within my variable.
Is there a way to allow numbers for variable names?
View 3 Replies
View Related
Dec 9, 2010
I use the below loop to process each file (listed in a text file) with a software. During processing the software asks me to enter a value and continues processing of that file after I enter the value. I have those values stored in a text file "myfile". What I want is to get the values directly from myfile when the software asks "please enter the title:". I dont want to enter them all manually. But i could not figure out how to code this in Bash script.
Code:
for ((i=1,i<=$NR,i++)); do
--command of the software comes here--
done
View 4 Replies
View Related
Mar 19, 2011
I'm working on a simple data processing script.My script uses a loop with getline to check for the value on the next line to decide if it's time to terminate the loop.This works dandy, but the problem is that getline eats that line, which then isn't processed by the rules in the remainder of the script (even though I want it to be). To illustrate what I mean, consider this simple gawk script:
Code:
{
print $0
[code]...
View 8 Replies
View Related
Sep 9, 2010
I am writing a bash script where I would need to down load few file from server but the glitch is authentication is being performed by SSO/Siteminder server.
Does anyone aware of a option or trick with wget or curl to authenticate against SSO and then download the file from the server.
Standard http-user and http-password definitely does not suffice the need.
View 1 Replies
View Related
Aug 31, 2010
Does anyone know a method of being able to process the complete and literal command line passed to a shell script ? I want to have the command line parameters with ALL characters (including meta characters e.g. $ literally).
So as if there was no shell to substitute or expand parameters nor applying it quoting rules.
View 5 Replies
View Related
Dec 1, 2010
I would like to read unix file permissions into a bash array for processing but tbh I have no idea how to do this. Then I will check for each individual access right l, d, x etc.
View 11 Replies
View Related
Mar 25, 2010
I have a Python script that copies a couple of DLL's and EXE to a directory before running the EXE. It can be a fresh copy or the files can already be in the target directory and are then overwritten. The script uses shutil.copy() to copy the files and that works but as the files are copying processing continues and the script tries to run the files mid copy, causing an error.
I need a way to wait for the files to finish copying before the script continues. Putting the thread to sleep isn't good enough, calling os.system("copy ...") also doesn't work, using os.path.exist() won't work because the file will exist during the copy.
View 2 Replies
View Related
Jun 19, 2011
I have written the batch file which will go to the website, wait for input (download button/exit), move to the next algorithym and repeat. My problem is getting the batch file to click the stupid download button. Can I use wget, and can you show me how to use it or point me to a really good api?
Code:
@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER PLUGIN UPDATE
[code]....
View 6 Replies
View Related
Nov 29, 2010
I've been pulling my hair out trying to get wget to post data to a webpage to automatically download some files. I've tried many methods of syntax, but wget always downloads the html for the login page. A snippet of code I found in the login html page is below. Some of the characters are japanese, because it's a japanese website.
View 7 Replies
View Related