The PID of the script is: 16316 Shifting Command Line Arguments The arguments supplied are: Linux AIX HPUX VMware There are 4 arguments specified at the command line. command_line_agruments.sh Linux AIX HPUX VMware :~$ cat command_line_agruments.shĪssign Executable permissions to the Script :~$ chmod +x command_line_agruments.sh Now execute the scripts with command line arguments :~$. Let’s create a shell script with name “command_line_agruments.sh”, it will show the command line argruments that were supplied and count number of agruments, value of first argument and Process ID (PID) of the Script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |