I have just started learning the fundamentals of Unix and wondering why there are so many shells in a unix like system .
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.
Hello,
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").
Hi,
I am new to shell scripting in unix HP-UX.
I need to determine how much a perticular file system is full and if it goes over 80% it should notify through mail about which are the files which are greater than 1 GB size.
I used df -k command it is showing the alloocated KB and the %used in that FS. But how to get it through script and find the files > 1 GB.
Can anybody advise?
OK, let's continue on with our lessons about the Linux Shell and the command line.Today, we're going to learn how to write a script that you can run from the command line that will actually do stuff. It's a very simple script, so don't expect anything spectacular.
From the book Advanced Programming in the Unix environment:
Linux uses the Bourne-again shell for its default shell.
Hi All,
Currently our application is running on the server having AIX 5.3 OS.
What we intend to do is to run a shell script owned by another user and needs to be run as that particular user.
I was trying to create a shell script using the su command before running the actual script (which will be executed from the new script). The su command always prompt for a password.
Hi,
Can anyone help me how to exit a shell script if a unix command inside does not return any value for 10 seconds?
The scenarios is like this.
I want to login to a application using shell script where the connection string is mentioned.but suppose this connection string is not responding means after passing the password it is getting hanged, not getting into that application.In this case i
I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user.
What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this?