1. open a file in an editor: script.sh
2. place your commands there.
if you are going to run it in cron (scheduler) put these lines at the top of the file
close the file.
chmod +x /path/to/my/script.sh <- makes the script executable.
3. crontab -e lets you enter a job for scheduling. Here is a cron tutorial: Crontab – Quick Reference
will run the script at 11:05 every month on day one of the month, for example.
This User Gave Thanks to jim mcnamara For This Post:
When logged in as root if I type "env" there are a bunch of environment settings including one for CLASSPATH. However, I ran a cron script that ran this command "env > cronEnv". I noticed that the environment variables were entirely different inside the script. There wasn't even a CLASSPATH... (2 Replies)
I've got an *extremely* simple script I want to run every minute:
#!/bin/sh
ping -c 1 192.168.1.20 > ~/onlinestatus.txt
So, the script is called "status", it's executable, and in the correct path, etc. In a terminal window (I'm using Mac OS X), I can type status, and it will create... (4 Replies)
hello
I use a script to give me the number of users, at each hour.
this script read a file where there is the number of users for each hour and for each month (so 12 files per year).
If i execute the script (root), it is ok, i have xxx users for each hour.
if I put the script in the cron... (1 Reply)
guys
i have written a very simple script .it runs manually well.
but when i put it in cron,it doesn't give the desired output.
script looks like this:
#! /usr/bin/sh
#script for loading data in table using ctl file/Abhijeet K/08.07.2006
/svm_wl1/. .profile
cd... (5 Replies)
I want to cron one script which should run every second Thursday (in general Nth occurence of any day) of every month.
I am not getting the exact idea of doing this; Please guide.
Regards, (3 Replies)
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Dear All,
I have an assignment about collecting /var/adm/messages on each server running Solaris 9. All these servers will be installed with a script that collect all the messages in cron. All the messages will be collected by a single server.
I have a script to collect all the messages, but... (2 Replies)
Hello gurus,
I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired
report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup
is shown below:
#!/bin/ksh
db2... (3 Replies)
I have a script that require input from terminal at some point (either a,b or c)
How can I cron the script and automatically assume c as the input. (2 Replies)
Hi All,.
need your expertise, is there a way to create a script that will run with specific time without using cron. because i dont have access in cron.
TIA (19 Replies)
Discussion started by: meister29
19 Replies
LEARN ABOUT CENTOS
gst-complete-0.8
gst-complete-0.8(1) User Commands gst-complete-0.8(1)NAME
gst-complete-0.8, gst-complete - perform bash completion for gst-launch command lines
SYNOPSIS
complete -Cgst-complete-0.8 gst-launch
gst-complete [--gst-list-mm] [--gst-mm=string] [--print]
DESCRIPTION
gst-complete-0.8 enables bash to provide context-sensitive tab completion for gst-launch command lines. See gst-launch(1) for the syntax of
gst-launch command lines.
You must have a version of bash that supports programmable completion. Such versions of bash provide the complete built-in command.
gst-complete is a wrapper script that runs the latest installed version of gst-complete-X.X. For example, if both gst-complete-0.7 and gst-
complete-0.8 are installed on your system, gst-complete runs gst-complete-0.8.
OPTIONS
The following options are supported by gst-complete-0.8 and gst-complete:
--help Display detailed usage message. You can also use -? to specify this option.
The following options are supported by gst-complete only:
--gst-list-mm List found major/minor versions. This option displays the versions that are available.
--gst-mm=string Force major/minor version. This option enables you to specify a specific version to run, if you do not want to run the
default version.
--print Print wrapped command line. This option displays the command that will be run, and then runs the command.
EXAMPLES
Example 1: Generating the Registry of Available Plugins by Running gst-compprep
Run the following command in your .bash_profile or other appropriate place:
example% complete -C gst-complete-0.8 gst-launch
Example 2: Running the Wrapper Script and Displaying the Command Name
example% gst-complete --print
/usr/bin/gst-complete-0.8
FILES
The following files are used by this application:
/usr/bin/gst-complete-0.Executable for bash completion for gst-launch
/usr/bin/gst-complete Wrapper script that runs the latest installed version of gst-complete-X.X
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-media |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO gst-compprep(1), gst-feedback(1), gst-inspect(1), gst-launch(1), gst-launch-ext(1), gst-md5sum(1), gst-register(1), gst-thumbnail(1), gst-
typefind(1), gst-xmlinspect(1), gst-xmllaunch(1), gstreamer-properties(1), libgstreamer-0.8(3), libgstgetbits(3)NOTES
Original man page written by the GStreamer team at http://gstreamer.net/.
Updated by Brian Cameron, Sun Microsystems Inc., 2004.
SunOS 5.10 14 Oct 2004 gst-complete-0.8(1)