Sponsored Content
Top Forums Shell Programming and Scripting Unable to execute glance from cronjob Post 302839655 by Shravani on Friday 2nd of August 2013 07:18:44 AM
Old 08-02-2013
Hi All,

I got a solution ...
Glance should be used in adviser_only/aos mode to run in background using a script.

Code:
/opt/perf/bin/glance -aos ./command_file -iterations 2 >> ./cpu.csv

command_file
Code:
print "CPU total:" , gbl_cpu_total_util_cum|3|0, "% Mem Cum:",gbl_mem_util_cum|3|0,"%"

This is giving me the output :
CPU total: 87% Mem Cum: 86%
CPU total :64% Mem Cum: 86%
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

exec unable to run via cronjob

Hi , I write a script like this\ and put it under / (root) : ref=88 df -k | grep /cbmdata/00/gdd | tr -d '%' | \ while read a b c d e other do if (( $e >= $ref )) then line=`find /cbmdata/00/gdd -name "LOGS*" |sort -nr |tail -1` # echo $line rm -f $line fi done ... (11 Replies)
Discussion started by: xramm
11 Replies

2. UNIX for Advanced & Expert Users

unable to execute a .SH file

this is (11 Replies)
Discussion started by: angelina
11 Replies

3. Shell Programming and Scripting

need to have a cronjob which will execute certain scripts every hr

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

4. Shell Programming and Scripting

Check a condition in cronjob to execute a sh file

Hi, I need to execute a crontab based on a condition where one SH file should be executed only based on the output of a file in a folder. I have written the following cron job which is not working. 00 01 * * * read a < /px/batch/reslut.txt && && sh /px/batch/check.sh where my... (2 Replies)
Discussion started by: shanth_chandra
2 Replies

5. UNIX for Dummies Questions & Answers

unable to execute while loop

Hi everyone. I wanted to print numbers from 1 to 5 in reverse order. For this I used the following code: #!/bin/bash x=5 while do echo $x x=`expr $x - 1` echo "" done echo "" Well but on compiling the above code, it gives the following error. ... (3 Replies)
Discussion started by: grc
3 Replies

6. Shell Programming and Scripting

How to execute cronjob running in a different machine?

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

7. Shell Programming and Scripting

Execute Shell Script from CRONJOB

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

expect telnet script execute by cronjob

hi, please help, keep getting this bolded error and look it up and people say its your environment variable though i tried to set it manually in expect..it run fine if i run it manually but once i run it by cronjob it error below..i tried to comment out ip/login info with *.. logfile:: START... (0 Replies)
Discussion started by: cssanangeles
0 Replies

9. Shell Programming and Scripting

Cronjob to be execute today at 9pm

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

10. UNIX for Beginners Questions & Answers

Execute Ubuntu 14.04 cronjob as non-root

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
DateTime::Locale::tr(3) 				User Contributed Perl Documentation				   DateTime::Locale::tr(3)

NAME
DateTime::Locale::tr SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'tr' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Turkish. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Pazartesi SalX CarXamba PerXembe Cuma Cumartesi Pazar Abbreviated (format) Pzt Sal Car Per Cum Cmt Paz Narrow (format) P S C P C C P Wide (stand-alone) Pazartesi SalX CarXamba PerXembe Cuma Cumartesi Pazar Abbreviated (stand-alone) Pzt Sal Car Per Cum Cmt Paz Narrow (stand-alone) P S C P C C P Months Wide (format) Ocak Xubat Mart Nisan MayXs Haziran Temmuz AXustos Eyluel Ekim KasXm AralXk Abbreviated (format) Oca Xub Mar Nis May Haz Tem AXu Eyl Eki Kas Ara Narrow (format) O X M N M H T A E E K A Wide (stand-alone) Ocak Xubat Mart Nisan MayXs Haziran Temmuz AXustos Eyluel Ekim KasXm AralXk Abbreviated (stand-alone) Oca Xub Mar Nis May Haz Tem AXu Eyl Eki Kas Ara Narrow (stand-alone) O X M N M H T A E E K A Quarters Wide (format) 1. ceyrek 2. ceyrek 3. ceyrek 4. ceyrek Abbreviated (format) C1 C2 C3 C4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. ceyrek 2. ceyrek 3. ceyrek 4. ceyrek Abbreviated (stand-alone) C1 C2 C3 C4 Narrow (stand-alone) 1 2 3 4 Eras Wide Milattan Oence Milattan Sonra Abbreviated MOe MS Narrow MOe MS Date Formats Full 2008-02-05T18:30:30 = 05 Xubat 2008 SalX 1995-12-22T09:05:02 = 22 AralXk 1995 Cuma -0010-09-15T04:44:23 = 15 Eyluel -10 Cumartesi Long 2008-02-05T18:30:30 = 05 Xubat 2008 1995-12-22T09:05:02 = 22 AralXk 1995 -0010-09-15T04:44:23 = 15 Eyluel -10 Medium 2008-02-05T18:30:30 = 05 Xub 2008 1995-12-22T09:05:02 = 22 Ara 1995 -0010-09-15T04:44:23 = 15 Eyl -10 Short 2008-02-05T18:30:30 = 05.02.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.09.-010 Default 2008-02-05T18:30:30 = 05 Xub 2008 1995-12-22T09:05:02 = 22 Ara 1995 -0010-09-15T04:44:23 = 15 Eyl -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = 05 Xubat 2008 SalX 18:30:30 UTC 1995-12-22T09:05:02 = 22 AralXk 1995 Cuma 09:05:02 UTC -0010-09-15T04:44:23 = 15 Eyluel -10 Cumartesi 04:44:23 UTC Long 2008-02-05T18:30:30 = 05 Xubat 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 AralXk 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 Eyluel -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 05 Xub 2008 18:30:30 1995-12-22T09:05:02 = 22 Ara 1995 09:05:02 -0010-09-15T04:44:23 = 15 Eyl -10 04:44:23 Short 2008-02-05T18:30:30 = 05.02.2008 18:30 1995-12-22T09:05:02 = 22.12.1995 09:05 -0010-09-15T04:44:23 = 15.09.-010 04:44 Default 2008-02-05T18:30:30 = 05 Xub 2008 18:30:30 1995-12-22T09:05:02 = 22 Ara 1995 09:05:02 -0010-09-15T04:44:23 = 15 Eyl -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 Ed (d E) 2008-02-05T18:30:30 = 5 Sal 1995-12-22T09:05:02 = 22 Cum -0010-09-15T04:44:23 = 15 Cmt EEEd (d EEE) 2008-02-05T18:30:30 = 5 Sal 1995-12-22T09:05:02 = 22 Cum -0010-09-15T04:44:23 = 15 Cmt H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hhmm (hh:mm a) 2008-02-05T18:30:30 = 06:30 PM 1995-12-22T09:05:02 = 09:05 AM -0010-09-15T04:44:23 = 04:44 AM HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 hhmmss (hh:mm:ss a) 2008-02-05T18:30:30 = 06:30:30 PM 1995-12-22T09:05:02 = 09:05:02 AM -0010-09-15T04:44:23 = 04:44:23 AM Hm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (dd/MM) 2008-02-05T18:30:30 = 05/02 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/09 MEd (dd/MM E) 2008-02-05T18:30:30 = 05/02 Sal 1995-12-22T09:05:02 = 22/12 Cum -0010-09-15T04:44:23 = 15/09 Cmt MMM (LLL) 2008-02-05T18:30:30 = Xub 1995-12-22T09:05:02 = Ara -0010-09-15T04:44:23 = Eyl MMMd (dd MMM) 2008-02-05T18:30:30 = 05 Xub 1995-12-22T09:05:02 = 22 Ara -0010-09-15T04:44:23 = 15 Eyl MMMEd (dd MMM E) 2008-02-05T18:30:30 = 05 Xub Sal 1995-12-22T09:05:02 = 22 Ara Cum -0010-09-15T04:44:23 = 15 Eyl Cmt MMMMd (dd MMMM) 2008-02-05T18:30:30 = 05 Xubat 1995-12-22T09:05:02 = 22 AralXk -0010-09-15T04:44:23 = 15 Eyluel MMMMEd (dd MMMM E) 2008-02-05T18:30:30 = 05 Xubat Sal 1995-12-22T09:05:02 = 22 AralXk Cum -0010-09-15T04:44:23 = 15 Eyluel Cmt mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M/yyyy) 2008-02-05T18:30:30 = 2/2008 1995-12-22T09:05:02 = 12/1995 -0010-09-15T04:44:23 = 9/-010 yMEd (dd.MM.yyyy EEE) 2008-02-05T18:30:30 = 05.02.2008 Sal 1995-12-22T09:05:02 = 22.12.1995 Cum -0010-09-15T04:44:23 = 15.09.-010 Cmt yMMM (MMM y) 2008-02-05T18:30:30 = Xub 2008 1995-12-22T09:05:02 = Ara 1995 -0010-09-15T04:44:23 = Eyl -10 yMMMEd (dd MMM y EEE) 2008-02-05T18:30:30 = 05 Xub 2008 Sal 1995-12-22T09:05:02 = 22 Ara 1995 Cum -0010-09-15T04:44:23 = 15 Eyl -10 Cmt yMMMM (MMMM y) 2008-02-05T18:30:30 = Xubat 2008 1995-12-22T09:05:02 = AralXk 1995 -0010-09-15T04:44:23 = Eyluel -10 yQ (Q yyyy) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -010 yQQQ (QQQ y) 2008-02-05T18:30:30 = C1 2008 1995-12-22T09:05:02 = C4 1995 -0010-09-15T04:44:23 = C3 -10 yyMM (MM/yy) 2008-02-05T18:30:30 = 02/08 1995-12-22T09:05:02 = 12/95 -0010-09-15T04:44:23 = 09/-10 yyMMM (MMM yy) 2008-02-05T18:30:30 = Xub 08 1995-12-22T09:05:02 = Ara 95 -0010-09-15T04:44:23 = Eyl -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = 1. ceyrek 08 1995-12-22T09:05:02 = 4. ceyrek 95 -0010-09-15T04:44:23 = 3. ceyrek -10 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Pazartesi SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::tr(3)
All times are GMT -4. The time now is 04:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy