Sponsored Content
Top Forums UNIX for Advanced & Expert Users Unable to call a script from another script in cshell Post 302700187 by pamu on Thursday 13th of September 2012 05:35:35 AM
Old 09-13-2012
Quote:
Originally Posted by gthangav
SmilieStill same issue. Smilieermission denied.

---------- Post updated at 04:26 AM ---------- Previous update was at 04:19 AM ----------

Below mentioned command only using to execute the script.
% . /tmp.csh
Don Cragun's solution should work for you..

tried this..

Code:
$ cat test.sh
echo "calling script"
./test2.sh

$ cat test2.sh
echo "it's Working"

$sh test.sh
calling script

test.sh: line 2: ./test2.sh: Permission denied

$ chmod +x test2.sh

$ sh test.sh
calling script
it's Working

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help with cshell script to read 1 or more lex files

taskes one or more .l files and compiles them #!/usr/bin/csh #while loop to carry on asking user to enter the files while $number!=0 echo "enter file name" #check to see if file ends with .l #if file ends with .l compile lexx.yy.c file for each file this is how i think it needs... (1 Reply)
Discussion started by: homerj546
1 Replies

2. Shell Programming and Scripting

How to make a cshell (csh) script interactive

Experts, I tried to make my cshell script interactive by asking the user for password and trying to read the input using the "read" command. I have been unsuccessful so far. Do you have any idea ? Thanks Jim (2 Replies)
Discussion started by: jimmynath
2 Replies

3. Shell Programming and Scripting

Unable to call executable from script

Now I am using the HP-UX11.11 version. The scripts are runninh in KSH shell. While I wan to call one executable of any Pro*C file, I have got the following error, however the executable is running fine directly. testpri Started at 10.05.200923:40 /usr/lib/dld.sl: Bad magic number for... (0 Replies)
Discussion started by: priyankak
0 Replies

4. Shell Programming and Scripting

Script cShell - help!!

Hello everyone! i'm new in this forum and I'm here because I have a huge problem with a csh script. Here the problem: I have to write a script that check the system status, more precisely I have to check if there are processes with TIME > 3 hours and if such processes exists I must send a mail... (3 Replies)
Discussion started by: TheBeefEater
3 Replies

5. Shell Programming and Scripting

cshell script problem

Hi ,I have this simple code,why is not working thanks #!/bin/csh set res=find ./ -name "*.bash" | wc -l $res > result.txt (16 Replies)
Discussion started by: lio123
16 Replies

6. UNIX for Dummies Questions & Answers

this cshell script does not work ??

Hi I am trying to put the following commands that i have to type manually at the cshell prompt into a cshell script startup.csh which is copied below echo $DISPLAY xhost + rsh ba08lo01 module load incisiv/102/10.20.035 setenv DISPLAY $DISPLAY When i run the script with source command... (2 Replies)
Discussion started by: kaaliakahn
2 Replies

7. Shell Programming and Scripting

[Solved] Unable to call a python script from bash

Hi, I am trying to run a python script embedded in bash script. But is throwing me an error. Please help. Script: #!/bin/bash nohup /usr/bin/python /opt/web/http.py & Error: /usr/bin/python: can't open file '/opt/web/http.py': No such file or directory Please help me on this. (6 Replies)
Discussion started by: maddy26615
6 Replies

8. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

9. Shell Programming and Scripting

Call a Perl script within a bash script and store the ouput in a .txt file

I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients). I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Discussion started by: mecaka
6 Replies

10. Shell Programming and Scripting

Assigning any number to the variable in cshell script

Hello Guys, I would like to ask you for a favor. Could you please help me how can I assign any number as the parameter to a, from stdin (-c), in the following command line by using the 'switch' in a script? awk '$8>a {print "File name:" $5,$8}' I would also appreciate if you can share any... (1 Reply)
Discussion started by: Padavan
1 Replies
SCHLEUDER-NEWLIST(8)													      SCHLEUDER-NEWLIST(8)

NAME
schleuder-newlist - create new Schleuder mailing list SYNOPSIS
schleuder-newlist [-c baseconfig] newlist@example.net [-realname "Foo List"] [-adminaddress listadmin@example.net] [-initmember member1@example.net -initmemberkey path-to-initmember-publickey] [-privatekeyfile path-to-privatekey -publickeyfile path-to-publickey -passphrase "key passphrase"] [-mailuser schleuder] [-nointeractive] DESCRIPTION
schleuder-newlist automates the creation of new Schleuder mailing lists. For more information on Schleuder, please look at schleuder(8). schleuder-newlist does various input validation, and can generate a key or import one. It will give you as well an easy interface to build new lists in a scripted manner. It also supports an interactive mode, with which the user will be prompted for missing mandatory options. The interactive mode can be dis- abled, using the -nointercative flag; it is automatically disabled if the script isn't run within a valid tty. If no -privatekeyfile, -publickeyfile and -passphrase are provided, the list will create a new keypair with a random password. The type and length of the generated keypair is specified in /etc/schleuder/schleuder.conf. OPTIONS
-c path-to-schleuder-configuration: Specify an alternate configuration directory than the default /etc/schleuder. -realname "Foo List" Specify the name of the mailing list. -adminaddress listadmin@example.net Specify the email address of a list administrator. This address will be notified of errors, and depending on configuration may also be allowed to send restricted email commands. -initmember member1@example.net Specify the first subscribed list member address. Can be the same as the administrator address. This option must be accompanied by -initmemberkey. -initmemberkey path-to-initmember-publickey Specify the path to first subscribed list member public key. -initmember must also be specified. -privatekeyfile path-to-privatekey Specify the path to a previously-generated private key for the list. This option must be accompanied by -publickeyfile and -passphrase. -publickeyfile path-to-publickey Specify the path to a previously-generated public key for the list. This option must be accompanied by -privatekeyfile and -passphrase. -passphrase "key passphrase" Specify the passphrase needed to access the private key specified in -privatekeyfile. This option must be accompanied by -publickey- file as well. -mailuser schleuder Specify the system user account under which schleuder(8) will be executed (when run as root, this defaults to schleuder). -nointeractive When specified, no questions will be asked to complete missing information. EXAMPLES
This creates a new list called test1 with the initial member foo@bar.ch. A new keypair will be generated for the list. schleuder-newlist foobar@example.org -realname "bal jak" -adminaddress admin@example.org -initmember foo@example.com -initmemberkey /tmp/foo.pub The list test2 will be created, a keypair from the following files with the passphrase test will be imported. schleuder-newlist test2@example.com -realname "bal jak" -adminaddress foobar@example.org -privatekeyfile ~/tmp/test2.priv -publickeyfile /tmp/test2.pub -passphrase test FILES
/etc/schleuder/schleuder.conf global Schleuder configuration /etc/schleuder/default-list.conf default list settings /var/schleuderlists/HOSTNAME/LISTNAME list internal data /var/schleuderlists/HOSTNAME/LISTNAME/list.conf list settings /var/schleuderlists/HOSTNAME/LISTNAME/members.conf list susbcribers All configuration files are formatted as YAML. See http://www.yaml.org/ for more details. BUGS
Known bugs are listed on the Schleuder website. SEE ALSO
schleuder(8), aliases(5), gnupg(7). Schleuder website http://schleuder.nadir.org/ YAML website http://www.yaml.org/ June 2012 SCHLEUDER-NEWLIST(8)
All times are GMT -4. The time now is 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy