copy files/directory and show it by progress bar (zenity/kdialog)
Hi,
I wrote script tcsh to copy files/directory. what is wrong and why zenity not open? Code:
#!/bin/tcsh -f |
Hello,
I am not very familiar with tcsh, but: 1/ First, you copy the files, _THEN_ you run some loop doing what? 2/ Doesn't tcsh use double quotes around parameters? 3/ What's the condition for the while loop? $src >> $des. Is that a bit shift? |
Quote:
Code:
#!/bin/bash Let us know. |
Quote:
2. no error found so i guess yes. 3. don't understand the problem bash not work for me and i still want to use tcsh. can anyone help? |
Quote:
Quote:
Quote:
|
Quote:
Now I don't want to help you. If you are not willing to take direction, why are you asking for help? You're welcome, btw. |
maybe using dd you can redirect its progress to be prompted to zenity.
|
Code:
#! /bin/sh (and idk zenity) |
As stated your copy command completes before the loop starts and the syntax for zenity is incorrect. I would base the progress on number of files copied versus directory size. The following is psuedo bash but I think it gets the basic idea across.
Code:
|
All times are GMT -5. The time now is 09:42 PM. |