Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the significance of the 'tee' command?

1147


What are grep patterns?

1032


What is the general format of unix command syntax?

1821


Explain ‘library functions’ with respect to unix commands?

1128


what is the advaantage of each user having its own copy of the shell?

2513


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

2186


What are reported commands?

1084


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)?

1523


How do I use grep to find a file?

1072


What is a bash command?

1128


What is the difference between grep and grep?

1071


What is grep r?

1049


hw will u use awk in replacing cahrs and files

3185


What is “chmod” command?

1105


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

2214