Sponsored Content
Full Discussion: Is it possible to do this
Top Forums Shell Programming and Scripting Is it possible to do this Post 68568 by 801238429 on Tuesday 5th of April 2005 12:03:15 PM
Old 04-05-2005
Is it possible to do this

Is it possible to "call and run" another script inside a script?

So say I had a script right now ... is it possible to enter in a code that will call&run another script?

I currently created 2 simple scripts.

1st script
=======
- takes number of users
- records number of users & time in a log file (log.txt)

2nd script
=======
- tells you if a user is currently logged on

I wanna use my 2nd script to append the log.txt of my 1st script so it will tell me if I am online at the moment. Is that possible to do?
 
INSTALLSIEVE(1) 					      General Commands Manual						   INSTALLSIEVE(1)

 *

NAME
installsieve - user utility for managing sieve scripts SYNOPSIS
installsieve DESCRIPTION
installsieve is a utility that allows users to manage their sieve scripts kept on the server. OPTIONS
-v <name> View script with the given name. The script if retrieved sucessfully is output to standard output. -l List all of the scripts currently on the server. If one of the scripts is active a arrow is printed indicating that it is the active script. -p <port> Port to connect to. If left off this defaults to "sieve" as defined in /etc/services. -i <file> Install a file onto the server. If a script with the same name already exists on the server it is overwritten. Upon sucessfully putting the script on the server the script is set active. If <file> has the extension .script it is chopped when put on the server since sieve names may not contain a '.'. -a <name> Set <name> as the active script. The list of available names can be obtained from the '-l' option.. -d <name> Delete the sieve script on the server with <name>. -m <mechanism> Force installsieve to use <mechanism> for authentication. If not specified the strongest authentication mechanism is chosen. -g <name> Get the sieve script with <name> and save it to disk with a ".script" extension. If a file with that name already exists it is overwritten. -u <user> Userid/Authname to use for authentication; by default, the current user. CMU
Project Cyrus INSTALLSIEVE(1)
All times are GMT -4. The time now is 09:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy