10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
I created a sh script to import some tables from mysql to hive.
No problem launching it manually, but if I schedule via crontab it returns me an error in the following part:
#create an array containing all the tables for $dbname
query="SELECT table_name FROM information_schema.tables'... (10 Replies)
Discussion started by: mfran2002
10 Replies
2. UNIX for Advanced & Expert Users
Hi all,
i have the following script
#!/bin/sh
for i in `ps -leaf --cols 1024 | grep LogUser | grep -v grep | awk '{print $4}'`;
do
echo $i
kill -15 $i;
done;
but it seems that the crontab its sciping this script,i configured corntab as following
*/30 * * * root... (2 Replies)
Discussion started by: charli1
2 Replies
3. Red Hat
Hi,
-- I am new to linux, please bear with my tech terms.
I am using Red Hat 4.1.2-48 (Linux version 2.6.18-194.11.1.el5) for the project. This is a remote server and I do not use any GUI.
Now I need to install a product that requires me to launch firefox from linux. when i am trying... (3 Replies)
Discussion started by: vj8436
3 Replies
4. OS X (Apple)
Howdy
I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies
5. Shell Programming and Scripting
hi,
I have shell script ( say A.sh) that launches another shell script ( say B.sh) on the server.
In shell script A.sh, if i call B.sh as
. B.sh <-- it doesnt work, err file not found
. ./B.sh <-- it doesnt work, err file not found
./B.sh <-- works
why so? BTW the file exists at the... (4 Replies)
Discussion started by: sjc
4 Replies
6. Shell Programming and Scripting
Hi,
General question, if I have a shell script whcih I launch from anywhere on the system vis the PATH env var, how can I get the script to echo where I launch this from?
i.e. /my/home/script/myscript
BUT
I launch this from /my/otherarea/somewherelse via the env variable. I would... (1 Reply)
Discussion started by: cyberfrog
1 Replies
7. Shell Programming and Scripting
hi there,
i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments.
This is the code,
after the java... (4 Replies)
Discussion started by: momal
4 Replies
8. UNIX for Dummies Questions & Answers
Hi folks!
my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec.
The application-configuration is launching the script (which is in the home directory of connecting user) like:
rexec host user pass shell.sh
So far so good, everything... (3 Replies)
Discussion started by: JohnMurdoch
3 Replies
9. Shell Programming and Scripting
Hi,
I need to create a shell that launches several shells named for example svspush (that does nothing but wait) and record their pid in a file.
Any inputs please.
Thanks,
Marconi (1 Reply)
Discussion started by: marconi
1 Replies
10. Shell Programming and Scripting
I'm new to programming on unix and have a really simple question (google hasn't been my friend today).
I have a bash shell running on a remote machine. I'm looking at it from a windows PC using Exceed. Is there a command I can use from the shell which will launch another bash shell?
Thanks! (3 Replies)
Discussion started by: gsd
3 Replies