curl - Using following shell script to find data on web with given username and password -
the following code prints files contains both- string1 , string2. want functionality find same on given ip-address given userame , password. kindly suggest modifications incorporate functionality
for file in `find -name "*.java"` grep -q "string1" $file && grep -q "string2" $file && echo "\n`basename $file`" done
for making search of file on remote machine never been easy.
but in case want , have rights make search on remote computer, might want follow below steps.
1) first of believe current shell script naive. need improve this faq
2) now, need learn build basic .xml file through ant. need learn use it's sshexec functionality. execute shell script on remote machine
3) ensure ftp service , put shell script on remote machine through ftp.
4) execute through ant build , write data.
i suggesting considering want run shell script "on remote machine" (not web) , allowed enter machine through ftp , ssh.
Comments
Post a Comment