how will u execute a file in unix

Answer Posted / lokesh

There are lot of ways by which u can execute a file in Unix.

1. ./<filename>

2. <filename> #only if the permissions are in place for the
user

3. sh <filename> #uses bash shell

4. nohup <filename> #the process doesn't get killed even on
reboot

5. Batch <filename>

6. at <time> <filename> #to schedule the job

7. U can also autorun it by making an entry into the cron

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I delete files from command prompt?

796


What are the dos commands?

866


Enlist some filename manipulation commands in unix.

749


What do chmod command do?

805


How do you grep recursively?

768


What is grep command in unix with examples?

831


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1192


What is “chmod” command?

749


What is the general format of unix command syntax?

1228


How do I use grep to search for a file?

781


What does the metacharacter mean?

803


How to find $ai_serual resolved path by using unix

1260


Why is awk called awk?

766


What is the first character of the output in ls l command?

863


How does the system know where one command ends and another begins?

1855