Entertainment/youtube/movies

Sunday, June 27, 2010

ALERT: We_Cant Send_Dell_XPS-Package.Go Inside and correct street_address!

ALERT: We_Cant Send_Dell_XPS-Package.Go Inside and correct street_address!ALERT: We_Cant Send_Dell_XPS-Package.Go Inside and correct street_address! xmultiplication Filters m echo "$recno. $na $ti $remark" >> /tmp/input0.$$ 6) Your current working directory Quotes in Shell Scripts m 11) Show computer cpu information like processor type, speed etc Variables in Linux m Linux Shell Script Tutorial utility # Q.2.Write Script to find out biggest number from given three nos. Nos are supplies as command line message : - Q.4. Write Script, using case statement to perform basic math operation as clear help_ani $ ani -n Lassie -a 4 2) Your current shell $ ./q4 20 / 3, Also check for sufficient command line arguments or $1 does not contains "*" symbol add it to $1, otherwise show message "Symbol is not required". For e.g. isdef=0 echo " -w weight of animal" Answer: See Q14 shell Script http://www.freeos.com/guides/lsst/maspc.htm (16 of 17) [17/08/2001 17.42.32]corner of the screen , while user can do his/her normal job at $ prompt. 5) Your current path setting # read ti -e { editor } start this { editor } if installed fi Where options work as This command is used to check valid command line argument passed to script. Usually used in while loop. # help_ani() To print help read na $ ani -n Lassie -a 4 -s Female -w 20Kg -c Mammal # # After given database file name and after giving appointment title press CTRL+C, Here we have already Here $1 is /bin, it should check whether "*" symbol is present or not if not it should print Required i.e. Shell Programming getopts command and productive (As you see from above shell script exercise), you should continue to read more advance Answer: See Q18 shell Script. #Start main procedure echo -n "Any Remark :" above script in editor and modify it so that at the end it will look like as follows Q.15. Write script called sayHello, put this script into your startup file called .bash_profile, the script Note: Create function for all action for e.g. To show date/time on screen create function argument. Print error if sufficient arguments are not supplied. $./testsign1 # Call our user define function : Take_input1 10) Show mouse settings Take_input1() # + addition rm -f /tmp/input0.$$ w) weight="$OPTARG";; menu-item is as follows # Q.10.How to perform real number calculation in shell script and store result to Answer: See Q16 shell Script # temporary file and then exit with exit status 1. Now check /tmp directory as follows present, if no name of directory given assumes current 4) Your operating system type Syntax: getopts {optsring} {variable1} calculate the 5.12 + 2.5 l Calendar To see current calendar Calendar must be shown using infobox of dialog utility Linux commands related with process m $ ls /tmp/input* # # Usage: ani -n -a -s -w -d If we called this script Q12 then after giving , recognized; if a letter is followed by a colon, the option is expected to have an argument, which should a) age="$OPTARG";; l After given database file name and after adding at least one appointment record to temporary file press { 7) Show Currently logged number of users options for ani script # Why to trap signal, version 1 # Linux Shell Scripting Tutorial # Take_input1 exit 1 © 1998-2000 FreeOS.com (I) Pvt. Ltd. All rights reserved. Here no space between option and their value. using trap command Good Afternoon Now problem is that while running this script, if you press CTRL + C, your shell script gets terminated and to database file and then loop will be terminated. You can view your database file by using cat command. show_datetime(). Date/time To see current date time Date and time must be shown using infobox of dialog while : # read isnext del_file() be separated from it by white space. Each time it is invoked, getopts places the next option in the shell # Set trap to for CTRL+C interrupt, Rules for Naming variable name m variable variable1, When an option requires an argument, getopts places that argument into the variable echo "Options: These are optional argument" Kernel m Redirection of Standard output/input while getopts n:a:s:w:d opt First try to write this shell script, as exercise, if any problem or for sample answer to this Shell script open Q.3.Write script to print nos as 5,4,3,2,1 using while loop. esac rm -f /tmp/input0.$$ / division -m start mc (midnight commander shell) , if installed Linux Shell Script Tutorial age="2 Months" # while deleting file to user. # signal is trapped to delete temporary file , version 2 # Set a infinite loop $ Q13 5 5 myf , Here print contains of 'myf' file from line number 5 to next 5 line of that file. Q.1. How to write shell script that will add two nos, which are supplied as command line argument, and if Introduction # if [ $# -lt 1 ]; then See because of getopts, we can pass command line argument in different style. Following are invalid temporary file are left in /tmp directory. For e.g. try as follows appointment record, if yes then next record is added , otherwise all records are copied from temporary file # recno=`expr $recno + 1` read na { How to print or access value of UDV (User defined variables) m $ ls /tmp/input* the shell script file supplied with this tutorial. else # # $ ani -n Lassie -s Female -w 20Kg -a 4 answer is yes then delete the file , report errors if any captured this CTRL + C signal (interrupt), so first our function del_file() is called, in which it gives if [ $isnext = n -o $isnext = N ]; then Q14 -c -d -m -e cat /tmp/input0.$$ >> $filename should run as soon as you logon to system, and it print any one of the following message in infobox using Process # # Set a infinite loop $ ani -w 20Kg -s Female -n Lassie -a 4 } Q.19. Write shell script to show various system configuration like echo "$recno. $na $ti $remark" >> /tmp/input0.$$ 12) Show memory information -s sex of animal Q.17. Write script to implement background process that will continually print current time in upper right Answer: See Q3 shell Script. To catch this signal in above script, put trap statement before calling Take_input1 function as trap echo -n "Enter your database file name : " read ans Answer: See Q13 shell Script # $ ani -nLassie-a4-sFemal-w20Kg Our script needs to detect when such signal (event) occurs, To achieve this we have to first detect Signal topics and books. If you have any suggestion or new ideas or problem with this tutorial, please feel free to user whether he/she wants to delete selected file, if read filename Exit To Exit this shell script Exit/Stops the menu driven program i.e. this script Good Morning #if no argument echo " -s sex of animal " echo "Usage: $0 -n -a -s -w -d" # Call our user define function : Take_input1 $ chmod +x testsign1 Common Linux Command Introduction m 1) Currently logged user and his logname n) na="$OPTARG";; Q.6.Write script to print given number in reverse order, for eg. If no is 123 it must print as 321. /bin/*, and if symbol present then Symbol is not required must be printed. Test your script as $ ani -a 2 The name of script must be 'q4' which works as follows Pipes m $ vi testsign1 l done Shell m clear http://www.freeos.com/guides/lsst/maspc.htm (13 of 17) [17/08/2001 17.42.32] -a age of animal echo -n "Enter your database file name : " Delete To delete selected file contact me. Save it and run as { # cat /tmp/input0.$$ >> $filename Answer: See Q11 shell Script. recno=0 found, file is created, after that it open one temporary file in /tmp directory, and puts today's date in that Redirectors m echo "Sorry, $filename does not exit, Creating $filename database" Here -c is not one of the options. fi 9 kill (cannot be caught) return # terminate loop Q.7.Write script to print given numbers sum of all digit, For eg. If no is 123 it's sum of all digit will be Linux Shell Script Tutorial do echo "Appointment Note keeper Application database file" > $filename Syntax: trap {commands} {signal number list} del_file 2 ., Here trap command called del_file() when 2 number interrupt ( i.e.CTRL+C ) occurs. Open #Set default value for variable fi } giving command as follows Q.5.Write Script to see current date, time, username, and current directory correct its written to temporary file, After that script ask user , whether he/she wants add next Q.18. Write shell script to implement menus using dialog utility. Menu-items and action according to select do while : Q.9.How to calculate 5.12 + 2.5 real number calculation at $ prompt in Shell ? $ Q12 /bin Q.11.Write script to determine whether given file exist or not, file name is supplied as command line read remark echo " their values are not taken)" echo -n "Add next appointment (y/n)?" $ ani -a 4 -s Female -n Lassie -w 20Kg $ chmod +x ani dialog utility, if installed in your system, If dialog utility is not installed then use echo statement to print case "$opt" in - subtraction # 1+2+3 = 6. follows echo -n "Any Remark :" How to Run Shell Scripts m argument called this script Q14, # $ ani -nLassie -a4 -sFemal -w20Kg $ ani -w 20Kg -s Female getopts is used by shell to parse command line argument. optstring contains the option letters to be More examples of Shell Script (Exercise for You :-) s) sex="$OPTARG";; echo "Animal Name: $na, Age: $age, Sex: $sex, Weight: $weight (user define mode)" read filename OPTARG. On errors getopts diagnostic messages are printed when illegal options or missing option # echo "Sorry, $filename does not exit, Creating $filename database" # fi \?) help_ani;; echo -n "Appointment Title:" then return # terminate loop http://www.freeos.com/guides/lsst/maspc.htm (11 of 17) [17/08/2001 17.42.32]file. Then one infinite loop begins, which ask appointment title, time and remark, if this information is How to write shell script m fi http://www.freeos.com/guides/lsst/maspc.htm (17 of 17) [17/08/2001 17.42.32] { Q.12.Write script to determine whether given command line argument ($1) contains "*" symbol or not, if Why Process required m Answer: Use Linux's bc command echo "* * * CTRL + C Trap Occurs (removing temporary file)* * *" message as "* * * CTRL + C Trap Occurs (removing temporary file)* * * " and then it remove our colors like red, brown etc using echo command. $ ani -n Lassie -a 4 -s Female -w 20Kg 3 quit Menu-Item Purpose Action for Menu-Item echo -n "Is data okay (y/n) ?" fi help_ani() # $ Q12 /bin Answer: See Q10 shell Script. Answer: See Q12 shell Script Now Shell will report no such temporary file exit. How to use Shell m Answer: See Q17 shell Script. Answer: See Q5 shell Script. Now save it run the program as Options: These are optional argument their values are not taken) echo "Animal Name: $na, Age: $age, Sex: $sex, Weight: $weight (demo mode)" age=3 l Take_input1 -d demo values (if any of the above options are used ani -n -a -s -w -d echo " -a age of animal" $ ani -n Lassie do Linux Shell Script Tutorial Take_input1() echo -n "Is data okay (y/n) ?" It first ask you main database file where all appointment of that day is stored, if no such database file That's all!, Thanks for reading, This tutorial ends here, but Linux programming environment is big, rich First ask user name of directory where all files are # When occurs it first it calls del_file() and then exit let the user select the file, then ask the confirmation to echo "Appointment Note keeper Application database file" > $filename third variable , lets say a=5.66, b=8.67, c=a+b? $ ./testsign1 -c clear the screen -n name of animal 13) Show hard disk information like size of hard-disk, cache memory, model etc http://www.freeos.com/guides/lsst/maspc.htm (12 of 17) [17/08/2001 17.42.32] echo -n "Appointment Title:" read ti Linux Shell Script Tutorial Answer: See Q2 shell Script. done sex=Male weight=20kg Linux Shell Script Tutorial 0 shell exit read isnext if [ ! -f $filename ]; then this two nos are not given show error and its usage na="Pluto Dog" rm -f /tmp/input0.$$ 2 interrupt (CTRL+C) 3) Your home directory My e-mail is gite-vivek@usa.net. echo "Data entry start data: `date`" >/tmp/input0.$$ Q.13. Write script to print contains of file from given line number to next given number of lines. For e.g. If done http://www.freeos.com/guides/lsst/maspc.htm (14 of 17) [17/08/2001 17.42.32]if [ $isdef -eq 0 ] if [ $ans = y -o $ans = Y ]; then $ mcedit testsign1 Answer: Use command as , $ echo 5.12 + 2.5 | bc , here we are giving echo commands output to bc to 14) File system (Mounted) echo " -d demo values (if any of the above options are used " Written by Vivek G Gite fi recno=0 read remark Q.16. How to write script, that will print, Message "Hello World" , in Bold and Blink effect, and in different script called ani which has syntax as Q.14. Write script to implement getopts statement, your script should understand following command line sex=Male echo "Appointment Note keeper Application for Linux" Answer: See Q19 shell Script. echo -n "Appoint time :" echo " -n name of animal" CTRL+C, Our script get terminated, and it left temporary file in /tmp directory, you can check this by } if [ $isnext = n -o $isnext = N ]; then we called this script as Q13 and run as $ cat > ani Signal Number When occurs Linux Shell Script Tutorial 9) Show all available shells arguments are encountered. If an illegal option is seen, getopts places ? into variable1. For e.g. We have Answer: See Q15 shell Script read ans # fi http://www.freeos.com/guides/lsst/maspc.htm (15 of 17) [17/08/2001 17.42.32]Answer: See Q6 shell Script. Linux Shell Scripting Tutorial Ver. 1.0 Save it and run as follows -d show list of files in current working directory How to define User defined variables m 1 hangup argument, also check for sufficient number of command line argument d) isdef=1;; Q.8.How to perform real number (number with decimal point) calculation in Linux $ ./testsign1 I N D E X trap del_file 2 if [ ! -f $filename ]; then echo "Appointment Note keeper Application for Linux" -w weight of animal na=Moti must be shown on screen using menus of dialog utility, echo -n "Add next appointment (y/n)?" echo "Data entry start data: `date`" >/tmp/input0.$$ Good Evening , according to system time. if [ $ans = y -o $ans = Y ]; then echo -n "Appoint time :" recno=`expr $recno + 1` Answer: See Q4 shell Script. $ Q12 /bin/* Answer: See Q7 shell Script. 8) About your os and version ,release number , kernel version } weight=3Kg exit 1 Answer: See Q1 shell Script. directory, then show all files only of that directory, Files URGENT-Notification: Dell_Package_cannot be_delivered!see Details

@$#cruzground.com/985rd.php?r-Nzg3MDQxYyFjZXBmY3BkNHAyNyExODA2ITNlZSFwYWQwMXxnbSFwYWRlbGx1MmZyaiE3ZGF0NnQxYiE=

Performance, Design, and Astonishing Functionality

- Biometric Fingerprint Reader
- 15.4" HD Display
- 2 Megapixel Webcam
- HDMI Audio Digital Interface

Hurry, get your favourite color while supplies last!

Shipping_Method:FedEx

Please Specify Your Correct_Street_Address Now

@$#cruzground.com/985rd.php?r-Nzg3MDQxYyFjZXBmY3BkNHAyNyExODA2ITNlZSFwYWQwMXxnbSFwYWRlbGx1MmZyaiE3ZGF0NnQxYiE=




Unsubscribe:
@$#cruzground.com/985rd.php?o-Nzg3MDQxYyFjZXBmY3BkNHAyNyExODA2ITNlZSFwYWQwMXxnbSFwYWRlbGx1MmZyaiE3ZGF0NnQxYiE=
orWriteto_reward_Group 1917West 4th AvenueSuite279 vancouverBC_V6J-1M7


Unsubscribe:
@$#cruzground.com/985rd.php?u-Nzg3MDQxYyFjZXBmY3BkNHAyNyExODA2ITNlZSFwYWQwMXxnbSFwYWRlbGx1MmZyaiE3ZGF0NnQxYiE=
Writeto_p-o-box 137 1648 S_Ohio_Salina KS-67401US