rsync files as they get created until the last file is created The 2019 Stack Overflow...
system call string length limit
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Working through the single responsibility principle (SRP) in Python when calls are expensive
How to pronounce 1ターン?
Why can't wing-mounted spoilers be used to steepen approaches?
Is this wall load bearing? Blueprints and photos attached
Hopping to infinity along a string of digits
Windows 10: How to Lock (not sleep) laptop on lid close?
Did God make two great lights or did He make the great light two?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Do working physicists consider Newtonian mechanics to be "falsified"?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Is a pteranodon too powerful as a beast companion for a beast master?
Would an alien lifeform be able to achieve space travel if lacking in vision?
Does Parliament hold absolute power in the UK?
What's the point in a preamp?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Arduino Pro Micro - switch off LEDs
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
What can I do if neighbor is blocking my solar panels intentionally?
How to test the equality of two Pearson correlation coefficients computed from the same sample?
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
How are presidential pardons supposed to be used?
Grover's algorithm - DES circuit as oracle?
rsync files as they get created until the last file is created
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I get rsync to ignore missing files?rsync shell scriptRSync move files to a different directory if they were deleted on the serverrsync filter: not finding the filter filersync isn't understanding what is the relative part in --files-from=FILEBackup synchronized files with rsyncRemoving files created by another user with rsyncGet rsync incremental file countrsync read `--files-from` from bash array instead of fileHow to remove source file created by the root user when using rsync?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
- run a backup job
- The jobs creates partial files one after the other.
What I want to do is that while the job is still running or while a file was last modified or created 3 minutes ago, the
file should be rsync to a remote server untill the last file has been created and 3 minutes old.
I am learning how to script.
I have tried different options but no success
The closest I got was that the files were copied up to the current last file created and the script exited without waiting for the subsequent files to be created.
In other words I could not get the script to loop until it picked up all the files before exiting.
In my test I used echo " nohup rsync -a --inplace /mara/backup/mala$filename mara@tronic922:/mara/backup/mala/ $ " >> thejobs instead of doing rsync dynamically.
But what I really need is to use rsync, so I can send each file to the remove server as it is created and it is 3 minutes old.
Hopefully someone can fix this for me or come up with a new script all together.
- see bottom for the files that get created.
#!/bin/ksh
for filename in `find . -mmin -3 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l` echo $filename
if [[ $BKPPROCCNT -eq 1 ]] || [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala/$filename mala@tronic9922:/home/backup/mala/ $
else
fi
sleep 3
done
#!/bin/ksh
for filename in `find . -mmin +2 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l`
echo $filename
if [[ $BKPPROCCNT -eq 1 ]] && [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep
done
TRYING TO USE A WHILE LOOP AS THE BACKUP JOB IS RUNNING - this I could not figure it out.
#!/bin/ksh
set BKPID = `ps -ef |grep "/royal/current/bin/_muller runbkup"|awk '{print $2}'|head -1`
while ("$BKID" != "")
do
if [ test `find /vpas/backup/mala -name bkup* -mmin +5` ] then
then
---
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep 3
done
cd /home/backup/mala
ls -lrt
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:50 bkup1
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:51 bkup2
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:52 bkup3
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:53 bkup4
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:55 bkup5
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:56 bkup6
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup7
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup8
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:58 bkup9
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:59 bkup10
-rw-rw-r-- 1 mala dev 3943402496 Apr 11 19:59 bkup11
HOW ABOUT
cat /dev/null > /vpas/backup/jkb/thejobs
if [[grep -q bkup1]] && [[grep -q bkup2]]
then
echo "first backup split bkup1, has completed"
SPLITSZ=ls -lrt |grep bkup1 |awk '{print $5}'|head -1
else echo "bkup1" split has not completed
sleep 3
fi
for filename in ls -lrt |grep bkup |awk '{print $9}'
do
if [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -eq $SPLITSZ ]] || [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -lt $SPLITSZ && ps -ef|grep -c "_dbutil probkup" -ne 1]]
then
echo " nohup rsync -a --inplace /vpas/backup/jkb/bak2 vpas@njros1up5302:/vpas/backup/jkb/ $ " >> thejobs
else
sleep 3
done
fi
rsync
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
- run a backup job
- The jobs creates partial files one after the other.
What I want to do is that while the job is still running or while a file was last modified or created 3 minutes ago, the
file should be rsync to a remote server untill the last file has been created and 3 minutes old.
I am learning how to script.
I have tried different options but no success
The closest I got was that the files were copied up to the current last file created and the script exited without waiting for the subsequent files to be created.
In other words I could not get the script to loop until it picked up all the files before exiting.
In my test I used echo " nohup rsync -a --inplace /mara/backup/mala$filename mara@tronic922:/mara/backup/mala/ $ " >> thejobs instead of doing rsync dynamically.
But what I really need is to use rsync, so I can send each file to the remove server as it is created and it is 3 minutes old.
Hopefully someone can fix this for me or come up with a new script all together.
- see bottom for the files that get created.
#!/bin/ksh
for filename in `find . -mmin -3 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l` echo $filename
if [[ $BKPPROCCNT -eq 1 ]] || [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala/$filename mala@tronic9922:/home/backup/mala/ $
else
fi
sleep 3
done
#!/bin/ksh
for filename in `find . -mmin +2 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l`
echo $filename
if [[ $BKPPROCCNT -eq 1 ]] && [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep
done
TRYING TO USE A WHILE LOOP AS THE BACKUP JOB IS RUNNING - this I could not figure it out.
#!/bin/ksh
set BKPID = `ps -ef |grep "/royal/current/bin/_muller runbkup"|awk '{print $2}'|head -1`
while ("$BKID" != "")
do
if [ test `find /vpas/backup/mala -name bkup* -mmin +5` ] then
then
---
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep 3
done
cd /home/backup/mala
ls -lrt
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:50 bkup1
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:51 bkup2
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:52 bkup3
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:53 bkup4
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:55 bkup5
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:56 bkup6
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup7
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup8
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:58 bkup9
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:59 bkup10
-rw-rw-r-- 1 mala dev 3943402496 Apr 11 19:59 bkup11
HOW ABOUT
cat /dev/null > /vpas/backup/jkb/thejobs
if [[grep -q bkup1]] && [[grep -q bkup2]]
then
echo "first backup split bkup1, has completed"
SPLITSZ=ls -lrt |grep bkup1 |awk '{print $5}'|head -1
else echo "bkup1" split has not completed
sleep 3
fi
for filename in ls -lrt |grep bkup |awk '{print $9}'
do
if [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -eq $SPLITSZ ]] || [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -lt $SPLITSZ && ps -ef|grep -c "_dbutil probkup" -ne 1]]
then
echo " nohup rsync -a --inplace /vpas/backup/jkb/bak2 vpas@njros1up5302:/vpas/backup/jkb/ $ " >> thejobs
else
sleep 3
done
fi
rsync
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday
add a comment |
- run a backup job
- The jobs creates partial files one after the other.
What I want to do is that while the job is still running or while a file was last modified or created 3 minutes ago, the
file should be rsync to a remote server untill the last file has been created and 3 minutes old.
I am learning how to script.
I have tried different options but no success
The closest I got was that the files were copied up to the current last file created and the script exited without waiting for the subsequent files to be created.
In other words I could not get the script to loop until it picked up all the files before exiting.
In my test I used echo " nohup rsync -a --inplace /mara/backup/mala$filename mara@tronic922:/mara/backup/mala/ $ " >> thejobs instead of doing rsync dynamically.
But what I really need is to use rsync, so I can send each file to the remove server as it is created and it is 3 minutes old.
Hopefully someone can fix this for me or come up with a new script all together.
- see bottom for the files that get created.
#!/bin/ksh
for filename in `find . -mmin -3 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l` echo $filename
if [[ $BKPPROCCNT -eq 1 ]] || [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala/$filename mala@tronic9922:/home/backup/mala/ $
else
fi
sleep 3
done
#!/bin/ksh
for filename in `find . -mmin +2 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l`
echo $filename
if [[ $BKPPROCCNT -eq 1 ]] && [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep
done
TRYING TO USE A WHILE LOOP AS THE BACKUP JOB IS RUNNING - this I could not figure it out.
#!/bin/ksh
set BKPID = `ps -ef |grep "/royal/current/bin/_muller runbkup"|awk '{print $2}'|head -1`
while ("$BKID" != "")
do
if [ test `find /vpas/backup/mala -name bkup* -mmin +5` ] then
then
---
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep 3
done
cd /home/backup/mala
ls -lrt
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:50 bkup1
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:51 bkup2
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:52 bkup3
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:53 bkup4
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:55 bkup5
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:56 bkup6
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup7
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup8
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:58 bkup9
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:59 bkup10
-rw-rw-r-- 1 mala dev 3943402496 Apr 11 19:59 bkup11
HOW ABOUT
cat /dev/null > /vpas/backup/jkb/thejobs
if [[grep -q bkup1]] && [[grep -q bkup2]]
then
echo "first backup split bkup1, has completed"
SPLITSZ=ls -lrt |grep bkup1 |awk '{print $5}'|head -1
else echo "bkup1" split has not completed
sleep 3
fi
for filename in ls -lrt |grep bkup |awk '{print $9}'
do
if [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -eq $SPLITSZ ]] || [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -lt $SPLITSZ && ps -ef|grep -c "_dbutil probkup" -ne 1]]
then
echo " nohup rsync -a --inplace /vpas/backup/jkb/bak2 vpas@njros1up5302:/vpas/backup/jkb/ $ " >> thejobs
else
sleep 3
done
fi
rsync
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
- run a backup job
- The jobs creates partial files one after the other.
What I want to do is that while the job is still running or while a file was last modified or created 3 minutes ago, the
file should be rsync to a remote server untill the last file has been created and 3 minutes old.
I am learning how to script.
I have tried different options but no success
The closest I got was that the files were copied up to the current last file created and the script exited without waiting for the subsequent files to be created.
In other words I could not get the script to loop until it picked up all the files before exiting.
In my test I used echo " nohup rsync -a --inplace /mara/backup/mala$filename mara@tronic922:/mara/backup/mala/ $ " >> thejobs instead of doing rsync dynamically.
But what I really need is to use rsync, so I can send each file to the remove server as it is created and it is 3 minutes old.
Hopefully someone can fix this for me or come up with a new script all together.
- see bottom for the files that get created.
#!/bin/ksh
for filename in `find . -mmin -3 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l` echo $filename
if [[ $BKPPROCCNT -eq 1 ]] || [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala/$filename mala@tronic9922:/home/backup/mala/ $
else
fi
sleep 3
done
#!/bin/ksh
for filename in `find . -mmin +2 -type f|grep bkup`;
do
BKPPROCCNT=`ps -ef |grep "/royal/current/bin/_muller runbkup"|grep -v grep |wc -l`
echo $filename
if [[ $BKPPROCCNT -eq 1 ]] && [[ -s $filename ]];
then
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep
done
TRYING TO USE A WHILE LOOP AS THE BACKUP JOB IS RUNNING - this I could not figure it out.
#!/bin/ksh
set BKPID = `ps -ef |grep "/royal/current/bin/_muller runbkup"|awk '{print $2}'|head -1`
while ("$BKID" != "")
do
if [ test `find /vpas/backup/mala -name bkup* -mmin +5` ] then
then
---
nohup rsync -a --inplace /home/backup/mala$filename mala@tronic9922:/home/backup/mala/ $
else
echo "backup ended or no file found"
fi
sleep 3
done
cd /home/backup/mala
ls -lrt
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:50 bkup1
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:51 bkup2
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:52 bkup3
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:53 bkup4
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:55 bkup5
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:56 bkup6
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup7
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:57 bkup8
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:58 bkup9
-rw-rw-r-- 1 mala dev 7516081152 Apr 11 19:59 bkup10
-rw-rw-r-- 1 mala dev 3943402496 Apr 11 19:59 bkup11
HOW ABOUT
cat /dev/null > /vpas/backup/jkb/thejobs
if [[grep -q bkup1]] && [[grep -q bkup2]]
then
echo "first backup split bkup1, has completed"
SPLITSZ=ls -lrt |grep bkup1 |awk '{print $5}'|head -1
else echo "bkup1" split has not completed
sleep 3
fi
for filename in ls -lrt |grep bkup |awk '{print $9}'
do
if [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -eq $SPLITSZ ]] || [[ ls -lrt |grep $filename |awk '{print $5}'|head -1 -lt $SPLITSZ && ps -ef|grep -c "_dbutil probkup" -ne 1]]
then
echo " nohup rsync -a --inplace /vpas/backup/jkb/bak2 vpas@njros1up5302:/vpas/backup/jkb/ $ " >> thejobs
else
sleep 3
done
fi
rsync
rsync
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
rosemary1986
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
rosemary1986rosemary1986
11
11
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
rosemary1986 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday
add a comment |
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
rosemary1986 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424530%2frsync-files-as-they-get-created-until-the-last-file-is-created%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
rosemary1986 is a new contributor. Be nice, and check out our Code of Conduct.
rosemary1986 is a new contributor. Be nice, and check out our Code of Conduct.
rosemary1986 is a new contributor. Be nice, and check out our Code of Conduct.
rosemary1986 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424530%2frsync-files-as-they-get-created-until-the-last-file-is-created%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am trying to script something on the logic that each split file will be of the same size except for the last one which will be less or equal. Base on that premise, I came up with the script below , it sure is not syntactically correct but I hope someone can enhance
– rosemary1986
yesterday