I am trying to automate SFTP command using a UNIX shell expect script with the help of expect command. My code is as below. When I tried executing the script it throws me an exception. Can somebody help me if you have faced the similar issue. Any help would be appreciated.
A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc.
Shell : In computing, a shell is a piece of software that provides an interface for users.
I understand that to run a shell-related command like history inside a shell script you should do either source script.sh or . ./script.sh, because otherwise it gives the history of the shell forked by the shell script, which is basically blank.
But I would like to know how I can run this nside a C program. Normally I do system("./script.sh").
I have one shell script for scanning documents from scanner(hardware).
Shell scripts were stored in each client system.
Suppose client scans application means i have to run that shell script and store scanned application in server.
I am using Html,js and servlets.
if i run shell script from servlet,It will execute shell script in a server.
I want to execute shell script from client system.I think
I need to record min and max resources for RAM, & CPU for each command's execution in a shell script. Maybe going in details I would also be interested to capture plots with resource usage i.e.start to end of individual command with respect to time in a shell script.
This is my own try and this is not my homework,and I study myself reading shell script pdf guide from net and learn shell scripts bit by bit.I am self study learner.I try to work out shell scripts.please help to resolve this type of problem.when I am struggling
I am using Redhat Linux 4.4 operating system.
I want to ping 16 network ip address from