Questions tagged [pv]

Pipe viewer is a terminal utility tool for monitoring the progress of data through a pipeline. Do not use this tag for photovoltaics or principal value calculation!

33 questions
0
votes
0 answers

Check status of pv tool on remote machine

I'm trying to run the script on the remote machine. Simple script.sh: #!/bin/bash dd if=/dev/zero | pv | dd of=/test.img I want to know if it is possible to see the status of pv when I run this script from my pc on machineB ssh root@machineB…
Vvojtek
  • 43
  • 6
0
votes
1 answer

Bash/pv Outputting "^M" at the end of each line

Super simple, but I have NO IDEA how to fix this. I have a super simple pv line (or so I thought) that writes to a file, but the output appends "^M" to the end of each line which the tail command doesn't interpret properly. To explain, I'm writing…
Kevitto
  • 3
  • 4
0
votes
2 answers

Persistence claim is stuck in pending

I am installing a chart using helm but its Pod and PVC are getting stuck in pending state but I see PV are in available state. I face this issue intermittently while installing chart Pod describe : Events:   Type     Reason           …
Peter
  • 405
  • 3
  • 6
  • 14
0
votes
1 answer

python subprocess does not capture stderr of a pv command

I need to run some bash script with python and show the output. Some of these scripts contains some pv command but from subprocess I am not able to get the pv output. import subprocess as sp p = sp.Popen(["./script.sh"], shell=False, bufsize=1,…
Red
  • 664
  • 2
  • 10
  • 20
0
votes
1 answer

Bash input problem after computing size of folder with du for pv when gpg prompts user

I'm working on a script to cipher a bunch of folders through the use of tar, gzip and gpg, plus pv with du and awk to keep track of progress. Here is the line that causes problems tar cf - "$f" | pv -s $(($(du -sk "$f" | awk '{print $1}') * 1024)) |…
Zone04
  • 21
  • 5
0
votes
1 answer

IDA Pro: using PV or whatever else to locate XREF to data

Are there any built-in tools for the feature I need, or should I write my own script? If so, what IDC functions might be useful? I am aware that I may use PV for finding connection between two arbitrary procedures However what I need is a bit…
George
  • 1
0
votes
3 answers

find and grep / zgrep / lzgrep progress bar

I would like to add a progress bar to this command line: find . \( -iname "*.bz" -o -iname "*.zip" -o -iname "*.gz" -o -iname "*.rar" \) -print0 | while read -d '' file; do echo "$file"; lzgrep -a stringtosearch\.anything "$file"; done The progress…
Maurs
  • 1
  • 1
0
votes
0 answers

Restore Data From a Huge mysqldump File

I have written a script to restore a huge mysqldump file in parallel https://gist.github.com/arunp0/4c34caee2432a6f11b91b99dfd2c5ef3 Is it okay split the dump file in parts and restore in parallel? Or If there is any suggestions for improvements to…
arunp9294
  • 767
  • 5
  • 15
0
votes
0 answers

pv command for progress bar not working correctly in a script

I have a script to perform a synchronisation between the local and production databases. In this script, there is a command to import the production.sql to my development database. It's a bit long, so I would like to add a progress bar. The command…
cercxtrova
  • 1,555
  • 13
  • 30
0
votes
1 answer

How to pipe password to sudo with zenity, pv and dd

I want to let users write an ISO to a USB pen drive from within Thunar or Dolphin. For this I've created a bash script which uses dd, pv and zenity. Currently I'm using pkexec to ask for a password before the dd command is executed, but the pkexec…
0
votes
2 answers

I need to use PV instead of NPV in Excel. However I am not able to understand why it gives different values

I have a case where in I need 17,00,000 (end of 1st year) increased by 6% every year for 24 more years (so total 25 years). When I discount it using NPV with 10% rate, I get 2,56,64,794. However for this I have to use many cells for 17,00,000…
7bluephoenix
  • 958
  • 7
  • 18
0
votes
1 answer

Streaming video over named PIPE with limited "channel" bandwidth

I have a video container vid.mp4 that I want to play with ffplay through a named PIPE and be able to tweak the maximum bandwidth allowed by the "channel". Follows what I did: 1. Create a named PIPE: mkfifo pipe_in 2. Send the container to the pipe…
fmagno
  • 1,446
  • 12
  • 27
0
votes
0 answers

AttributeError in 'sapm_celltemp' function when using 15-minute weather data resolution instead of hourly values

(I'm new here so please excuse the probably not perfectly formulated question) I've got a problem when running the run_model() method from the ModelChain class. I want to have the option to choose between hourly data resolution and 15-minute weather…
0
votes
0 answers

Script runs pv command on remote host - all output displays locally as expected, except the pv progress bar

The command executed remotely goes as follows, cat ${DUMPFILE} | pv -ls $( wc -l ${DUMPFILE} ) | gzip -c -- > ${DUMPFILE_ZIPPED} pv shows progress as expected when script is executed from host. Is there a way to have pv output show, when executed…
Stephane Gosselin
  • 9,030
  • 5
  • 42
  • 65
0
votes
1 answer

Getting pv output with subprocess

I am writing a script to automate database imports in MySQL. I'm trying to write code that displays the output of pv as the database is imported: pv = subprocess.Popen( ["pv", "-f", restore_filepath], bufsize=1, …
user31415629
  • 925
  • 6
  • 25