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

1129


How do I run a bash script?

1198


How do I find previous commands in unix?

1202


How do I search for a file in unix command?

1029


What is the comma to display different lines that are found when compare two files?

1173


Explain ‘library functions’ with respect to unix commands?

1184


Describe the zip/unzip command using gzip.

1173


What is ‘ps’ command for?

1197


What is the difference between cat command and more command?

1219


Which command can you use to find the currently running process in unix server?

1140


What do chgrp command do?

1236


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:

2280


Which command will print your home directory on screen?

1094


What is a bash command?

1194


What are reported commands?

1145