10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
2. Red Hat
Greetings/
I have a script listed in my roots crontab
07 9 * * * /opt/HLRSDATA_2010_OCT/HLRS_Scheduler_sp.sh > /opt/HLRSDATA_2010_OCT/logs/HLRTKJob.log
This script contains the following
#!/bin/bash
echo HLRSData Scheduler
cd /opt/HLRSDATA_2010_OCT
/usr/bin/java -Xms32m -Xmx1024m -cp... (6 Replies)
Discussion started by: RedSpyder
6 Replies
3. Shell Programming and Scripting
I want to execute a qt exe program at startup. That is after automatic login instead of loading Desktop and seeing it, the program quickly pop up to the screen. For this, I think we should add the script to rcx.local rather than rc.local I guess though.. I tried adding a script to /etc/rc.local... (0 Replies)
Discussion started by: dr_mabuse
0 Replies
4. Shell Programming and Scripting
Im using a script that writes a random line to a text file then executes another shell script. My problem is that the lottery shell script will not execute. Im not receiving an errors when running the shell script, and it copies a random line of text to mtest.txt fine.
#!/bin/bash
nscripts=2... (3 Replies)
Discussion started by: kylecn
3 Replies
5. Shell Programming and Scripting
Can anybody help me with this small script , the script works fine and launches the IE from
c:\documents and settings \test\my documents>ksh prompt
$RunURL1.sh
this scitpt works and launches the ie from ksh , but when i schedule it to run the script then i get the error box saying command:1... (2 Replies)
Discussion started by: venu
2 Replies
6. Shell Programming and Scripting
For some reason when I run these separately they work but when they are in a script file the second wont:
printf "%s\n" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" "$RANDOM"."$RANDOM" | tee $HOME/bpl/random
RANDOM1=$( <$HOME/bpl/random ) Anyone know why? (8 Replies)
Discussion started by: pkohn11
8 Replies
7. Shell Programming and Scripting
$ ls -l
total 44
drwx------ 2 ivanachu users 512 Dec 6 19:15 VILEARN
-rw------- 1 ivanachu users 74 Dec 5 18:42 cond
-rwx------ 1 ivanachu users 97 Dec 5 21:30 cond2
-rwxrwxrwx 1 ivanachu users 4979 Feb 10 22:42 createHAqmgr.ksh
-rw------- 1 ivanachu users 28 Dec 4... (10 Replies)
Discussion started by: ivanachukapawn
10 Replies
8. UNIX for Dummies Questions & Answers
sh filename
and it gives me an error saying the file doesnt exist but it definately does. (4 Replies)
Discussion started by: iago
4 Replies
9. UNIX for Dummies Questions & Answers
I've put this script in /etc/rc.d and made a symbolic link to it from S99pctb in /etc/rc.d/rc3.d but it wont start up. Anyone know why ?
This is the script:
---------------------------
#!/bin/sh
c=1
case "$1" in
start)
echo -n "starting pctb ..." > /etc/logger
while ; do... (7 Replies)
Discussion started by: msearson1
7 Replies
10. Shell Programming and Scripting
i have this script i wrote, it chokes when running the add install client commandit keeps telling me the add_install_client command is incorrect.
When I put the print statement in front of the command so it will echo it, the command looks right on the screen. Yes im am an ametuer, im trying to... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies