how will u execute a file in unix
Answers were Sorted based on User's Feedback
Answer / ravneet
if the file doesn't have executable permissions than assign
the same as chmod 755 <filename>. after that execute the
same by using command ./<filename>
| Is This Answer Correct ? | 25 Yes | 2 No |
Answer / narendrasairam
Depending on the type of shell you can execute a file in
either of the ways
1) ksh <filename>
2) sh <filename>
If the file already possess execute bit set on it, then you
can directly execute the file with its name alone
1) <filename>
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / 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 |
What are the dos commands?
Write a command to display a file’s contents in various formats?
What is the use of the command 'ls -x chapter[1-5]' ?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What does grep v grep do?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
How do you repeat a command in terminal?
Explain command to display different lines that are found when compare two files?
What command a user use to view a long text file one page at a time in UNIX?
what is mount ,tell me about mount ,how can u use in real time project??
what is difference between unix and linux?
What is the difference between pipe and xargs?