Hi I am trying to call shell script within other shell script but gettting error: -
script 1.ksh is calling 2.ksh:-
1.ksh contains below code:-
#!/bin/bash
curl -k -c /home/code/cookies.txt '/home/code/2.ksh';
minimumsize=215
actualsize=$(wc -c < "$1")
for (( i=1; i<=3; i++ ))
do
if [[ -s "$1" && $actualsize -lt $minimumsize ]] || [ ! -s "$1" ]
then
curl -k -c curl -k -c /home/code/cookies.txt '/home/code/2.ksh';
fi
done
2.ksh contains below code:-
#!/bin/bash
Google
path for both 1.ksh and 2.ksh is /home/code
---------- Post updated at 02:16 AM ---------- Previous update was at 02:15 AM ----------
1.ksh contains below code:-
#!/bin/bash
curl -k -c /home/code/cookies.txt '/home/code/2.ksh';
minimumsize=215
actualsize=$(wc -c < "$1")
for (( i=1; i<=3; i++ ))
do
if [[ -s "$1" && $actualsize -lt $minimumsize ]] || [ ! -s "$1" ]
then
curl -k -c curl -k -c /home/code/cookies.txt '/home/code/2.ksh';
fi
done
2.ksh contains below code:-
#!/bin/bash
https://www.infa-u.com