10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have created a cronjob that successfully executes and among other thing runs aria2c to download several files and save them to a folder. However, since it executes as sudo, the downloaded folder is saved with those permissions.
Is there a way to execute the cronjob so that the downloaded folder... (4 Replies)
Discussion started by: cmccabe
4 Replies
2. Shell Programming and Scripting
Hi
I am writing a script to get the CPU and memory utilization periodically from glance command.
Wrote a script which consists of below two lines
Script name : Utilization.sh
#!/bin/sh
glance -iterations 1 | sed -n '/Util/p/'| awk '!/Disk/'| awk '!/Swap/' >> file.txt
I am able to run the... (5 Replies)
Discussion started by: Shravani
5 Replies
3. Shell Programming and Scripting
HI Folks,
Sorry for this basic confusion but please help me.
i want to execute one script at 9pm today. i want make this as schedule so it can execute automatically.
So am doing like this.
21 10 24 4 <here what can i keep) /tmp/stemp/testcron.ksh
Can you please help on this?
... (6 Replies)
Discussion started by: coolboy98699
6 Replies
4. UNIX for Dummies Questions & Answers
Dear All,
I'm new to unix scripting. I'm trying to write an utility script which has to check if one file is newer than another one. $3 $4 $5 $6 are files .txt. Help me please.
for i in $3 $4 $5 $6
do
if
then
echo "$1 is newer than $i"
else
echo "$i is newer than $1"
fi (9 Replies)
Discussion started by: Manueldo
9 Replies
5. Shell Programming and Scripting
I have two master servers (i.e) myserver1 and myserver2 but one of them is passive and another is primary one which is live in production
I have a script that will tell the status of the machine.
I have a cronjob which pulls the files from the active server in production and the main... (1 Reply)
Discussion started by: prash358
1 Replies
6. Shell Programming and Scripting
CMD=$(find "${Release_Container}" -iname "${Release_Name}"_Release.txt)
for i in `cat $CMD`
do
if ];then
cd ${Sandbox_dir}
CMD1=$(find "${Sandbox_dir}"/* -iname "${Release_Name}" -type d | awk -F/ '{print $(NF)}' | head -1 )
if ];then
echo -e "################### CHECKOUT START... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
7. Shell Programming and Scripting
Hi Users,
I am Newbie to linux and cron. I have a requirement to run a job at 8 AM every Sunday.
I am using RHEL 5. Based on the hints through google search I created
crontab and added entry to call the shell script which will in turn login to Oracle user and execute a pl/sql block.
... (1 Reply)
Discussion started by: reachravi70
1 Replies
8. Shell Programming and Scripting
Hi,
I am developing 1 script in which I need to execute one cron job running in different server and my script is in different server.
so can any one help me to execute the cronjob set in different server.
Thanks in advance. (1 Reply)
Discussion started by: mridul10_crj
1 Replies
9. Shell Programming and Scripting
Hi
My question needs two answers
how to write scripts to update a table in oracle db based on the result of the number of record counts
for example
i need to execute the following script every hour
awk '{sum++;}END{for(i in sum) {print i, sum}}' filename
here everyhour the... (3 Replies)
Discussion started by: aemunathan
3 Replies
10. Shell Programming and Scripting
Hi
I am writing a script file which sends the log files along with their size in a folder named log to a file called temp.log using the following cmd:
ls -st 190_GSTV_HUX_003QISCGSK026** >> /home/user/temp.log
the temp.log looks like this:
16 190_GSTV_HUX_003QISCGSK026_message070321.log
... (11 Replies)
Discussion started by: kiran1112
11 Replies