10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have written a programme where i need to work in one session but when that session get executed it doesnt execute other programme till I write exit. Below is the script
#!/bin/bash
echo 'Going to start'
exectrusteduser.com sh.com
cd /UAT_Logs/CDCI_LOGS/SEEDADM
pwd
echo... (6 Replies)
Discussion started by: ripudaman.singh
6 Replies
2. Shell Programming and Scripting
In the following code snippet, 'if' part is always executed irrespective of whether I enter 'y' or 'n'. I am unable to figure out my mistake even after spending couple of hours. Can someone point out the mistake? Thank you!
echo "Do you want to delete?(y/n):"
read USERINPUT
echo $USERINPUT
... (2 Replies)
Discussion started by: Madhus
2 Replies
3. Shell Programming and Scripting
Hi
I try to run a command using bash script. The script should now look like this:
#!/bin/bash
case "$1" in
start)
sudo su - cispmgm -c "/usr/local/jdk/bin/java -Dworking.dir=/opt/ibm/cisp -Denvironment.target= -Xms512M -Xmx1024M -classpath... (3 Replies)
Discussion started by: nikolai.straess
3 Replies
4. Shell Programming and Scripting
Hi
I try to run a command using bash script. The script should now look like this:
#!/bin/bash
case "$1" in
start)
sudo su - cispmgm -c "/usr/local/jdk/bin/java -Dworking.dir=/opt/ibm/cisp -Denvironment.target= -Xms512M -Xmx1024M -classpath... (1 Reply)
Discussion started by: nikolai.straess
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
on our hp-ux box we have 100s of shell scripts in a bin folder.
Now i have to figure out which scripts are not being used at all.
The timestamp for these are the ones when they were promoted to this 'bin' folder.
Now, how can I find when was the last time each of these scripts were run?
I... (2 Replies)
Discussion started by: ysrini
2 Replies
6. AIX
Hi
Script not getting executed via cron but executes successfully when executed manually. Please assist
cbspsap01(appuser) /app/scripts > cat restart.sh
#!/bin/ksh
cd /app/bin
date >>logfile.out
echo "Restart has been started....." >>logfile.out
date >>logfile.out
initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
7. Shell Programming and Scripting
as i have been new to unix
can any one can tell,when be type a command on unix shell what processing it goes through before execution of it (1 Reply)
Discussion started by: shashank1311
1 Replies
8. Red Hat
hi there
the ethernet wire was out of the pc when the system started.
#ifconfig
#ifconfig -a
i did not get any ip for eth0.
i plug the cable into the pc
#ifdown eth0
#ifup eth0
now the ip address is assigned to eth0
Question is : IS this right way to bring ethernet down... (2 Replies)
Discussion started by: dplinux
2 Replies
9. Shell Programming and Scripting
Dear all
I would like to capture who executed a script to a script's variable (i.e. testing.sh), so I can save it to a log file.
testing.sh
#! bin/ksh
user=`<< code here >>` // get the info below in RED color
<<main logic>>
echo "$user execute testing.sh on `date`" >> testing.log
... (2 Replies)
Discussion started by: on9west
2 Replies
10. Solaris
When we login to a solaris terminal then which processes executed first?
I beleive that first system profile file and user .profile gets executed. So please let me know what happens exactly.
The question may like this that which rocesses arre executed first while loging into unix server? (1 Reply)
Discussion started by: surjyap
1 Replies