07-10-2009
How to execute a program at expect script
what i need is that after passwordless enter another program should execute. I can succeed passwordless login but ı could not execute (./son) program. pls help me
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies
2. Shell Programming and Scripting
Hi,
Can anyone pls give a sample to execute a shell script from C program
Thanks (2 Replies)
Discussion started by: baigmd
2 Replies
3. Programming
Hi,
Can anyone give me a sample code to execute shell script from C program.
Thanks (6 Replies)
Discussion started by: baigmd
6 Replies
4. Shell Programming and Scripting
Output file template format
<input_file_name>a</input_file_name>
<total_length_size>b</total_length_size>
<log_10_length_size>c</log_10_length_size>
Input_file_1 (eg. sample.txt)
SDFSDGDGSFGRTREREYWW
Parameter:
a is equal to the input file name
b is equal to the total length of... (2 Replies)
Discussion started by: perl_beginner
2 Replies
5. Shell Programming and Scripting
hi, please help, keep getting this bolded error and look it up and people say
its your environment variable though i tried to set it manually in expect..it run fine if i run it manually but once i run it by cronjob it error below..i tried to comment out ip/login info with *..
logfile::
START... (0 Replies)
Discussion started by: cssanangeles
0 Replies
6. Shell Programming and Scripting
Hi All,
well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this...
Please see the below details...and read the details carefully.
I have written some code, logic is
1)from... (4 Replies)
Discussion started by: aish11
4 Replies
7. UNIX for Dummies Questions & Answers
I just can't figure it out , so please just give me a pice of advise how to:
The existing Linux program foo2bar takes as its only argument the name of a single foo file and converts it to an appropriately-named bar file. Provide a script that when executed will run foo2bar against all foo... (4 Replies)
Discussion started by: raymen
4 Replies
8. Shell Programming and Scripting
Hi,
I am new to the expect scripting.
I have this expect script as below :
spawn ssh remote_server -l id
set pass "12345"
set opt "s"
expect "Password:" {send "$pass\r" ; }
expect "*ENTER*" {send "Enter\r"; exp_continue }
expect "Please select option :" {send... (2 Replies)
Discussion started by: curt137
2 Replies
9. Red Hat
closed (1 Reply)
Discussion started by: AbhishekAgrawal
1 Replies
10. Shell Programming and Scripting
I need to copy python script file to around 100 servers using expect script.
1. Copy script to my user home first(/home/myhome) on each remote server
2. change permissions on copied file to 766.
3. sudo to appuser1 account on remote server. copy script file from my user home to /usr/bin/... (1 Reply)
Discussion started by: kchinnam
1 Replies
LEARN ABOUT DEBIAN
sepermit.conf
SEPERMIT.CONF(5) Linux-PAM Manual SEPERMIT.CONF(5)
NAME
sepermit.conf - configuration file for the pam_sepermit module
DESCRIPTION
The lines of the configuration file have the following syntax:
<user>[:<option>:<option>...]
The user can be specified in the following manner:
o a username
o a groupname, with @group syntax. This should not be confused with netgroups.
o a SELinux user name with %seuser syntax.
The recognized options are:
exclusive
Only single login session will be allowed for the user and the user's processes will be killed on logout.
ignore
The module will never return PAM_SUCCESS status for the user. It will return PAM_IGNORE if SELinux is in the enforcing mode, and
PAM_AUTH_ERR otherwise. It is useful if you want to support passwordless guest users and other confined users with passwords
simultaneously.
The lines which start with # character are comments and are ignored.
EXAMPLES
These are some example lines which might be specified in /etc/security/sepermit.conf.
%guest_u:exclusive
%staff_u:ignore
%user_u:ignore
SEE ALSO
pam_sepermit(8), pam.d(5), pam(8), selinux(8),
AUTHOR
pam_sepermit and this manual page were written by Tomas Mraz <tmraz@redhat.com>
Linux-PAM Manual 06/04/2011 SEPERMIT.CONF(5)