Linux / UNIX Tech Support Forum
This is a discussion on Shell Script To Run Program at Login within the Shell scripting forums, part of the Development/Scripting category; Hi I am unable to create a script for login enabling the programme to run without giving the operator access ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi I am unable to create a script for
login enabling the programme to run without giving the operator access to a shell.
|
| Sponsored Links | ||
|
|
|
||||
|
Try restricted shell and add program to ~/.bashrc or ~/.bash_profile.
__________________
Vivek Gite Linux Evangelist |
|
|||
|
i am new to UNIX.
what i have done till now is i have created a menu driven programme and now i have to work with further concept that the application has its own status report enabling the programme to run without giving the operator access to a shell. Advancing the concept further the programme could be developed so that it is able to run with a ‘none interactive flag’ – enabling it’s execution to be automated with the resultant file e-mailed to a user perhaps once a day or once a week.
|
|
|||
|
hey hii i want to run a programme that is able to run with a non interactive flag- enabling it’s execution to be automated with the resultant file e-mailed to a user perhaps once a day or once a week
how can i do that anyone please help. Much appreciated
|
|
||||
|
I'm sorry but I don't get you. Can you explain in more details?
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Hi,
what i have done is i have developed a menu driven programme. after that i need to make the application its own operator status report login enabling the programme to run without giving operator access to shell. advancing the concept programme to be developed so that it is able to run with a ‘none interactive flag’ – enabling it’s execution to be automated with the resultant file e-mailed to a user perhaps once a day or once a week. Did u get it? |
|
|||
|
Hi,
what i have done is i have developed a menu driven programme. after that i need to make the application its own operator status report login enabling the programme to run without giving operator access to shell. advancing the concept programme to be developed so that it is able to run with a ‘none interactive flag’ – enabling it’s execution to be automated with the resultant file e-mailed to a user perhaps once a day or once a week. can anyone give me an idea to do write such a script?
|
|
||||
|
You can't do that until and unless you write your own shell with restrictions in mind.
__________________
Vivek Gite Linux Evangelist |
|
||||
|
You need to write your own shell like program in C which cannot be escaped by end user. Shell does not provides this kind of functions.
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| .bashrc , linux , shell , shell scripting , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH - Passing Unix login passwords through shell scripts | arulkumarr | Shell scripting | 4 | 27-08-2008 09:22 PM |
| Binary Conversion Of Shell Script (shell script compiler) | chandanperl | Shell scripting | 3 | 29-07-2008 10:22 AM |
| shell script to send mail for each login. | ephdia | Shell scripting | 2 | 27-11-2007 04:42 PM |
| How to change the login shell for Linux user | chimu | Getting started tutorials | 0 | 26-01-2007 07:20 PM |
| How to pass shell variable to awk program | Shell scripting | 4 | 23-06-2006 05:11 AM | |