08-12-2010
I dont believe there are any limitations for "ls" on HP-UX 11.00. I have successfully created 50,000 files in a dir and "ls" them. Are you trying to use a wildcard with "ls" ? If this is the case, then the shell will indeed have a maximum argument length.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
I was doing some practising with Unix and accidentally created a file with the name --------------------
Yeah, it was UNINTENTIONALLY. I tried removing it various ways like
rm '--------------'
rm '-.*'
and all other sorts, but Unix keeps detecting that as an option stuff...
... (2 Replies)
Discussion started by: scmay
2 Replies
2. UNIX for Advanced & Expert Users
I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ?
CPU usage
Memory usage
Load procs per min
Swap usage
Page I/O
Net I/O... (1 Reply)
Discussion started by: xbjxbj
1 Replies
3. Programming
I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ?
CPU usage
Memory usage
Load procs per min
Swap usage
Page I/O
... (11 Replies)
Discussion started by: xbjxbj
11 Replies
4. Shell Programming and Scripting
is there anyway to make while run a command faster than per second?
timed=60
while
do
command
sleep 1
done
i need something that can run a script for me more than one time in one second. can someone help me out here? (3 Replies)
Discussion started by: Terrible
3 Replies
5. Programming
I'm making a program that you input the month and year, and it creates a calender for that month of that year. This is my largest project yet, and I broke it up into several source files.
cal.c
#include "cal.h"
#include <stdio.h>
main() {
int month, year;
scanf("%d %d", &month,... (3 Replies)
Discussion started by: Octal
3 Replies
6. Shell Programming and Scripting
what is wrong with the below script:
---------------------------------------------------------------------------------
#!/bin/bash
echo "Setting JrePath..."
grep -w "export JrePath" /etc/profile
Export_Status=$?
if
echo "JrePath declared"
elif
echo "JrePath not declared"
echo... (4 Replies)
Discussion started by: proactiveaditya
4 Replies
7. UNIX for Dummies Questions & Answers
I have made a simple script to zip a file then first copy it to a specific directory using cp command then move it to another directory. Files are getting generated at regular intervals in the dir. /one/two/three/four/. I have entry of my script in cron to run after every 2 min.
#!/bin/sh... (9 Replies)
Discussion started by: Devesh5683
9 Replies
8. Shell Programming and Scripting
i have a sed command that is looking for the workds OK, WARNING and CRITICAL and add html color to those words. e.g:
echo $CONSUMABLE |$SED s/OK./\<span\ style\=\"background-color\:green\;font-weight\:bold\;\"\>OK\<\\\/span\>/g
the output breaks every so often and changes my output as... (10 Replies)
Discussion started by: adispi
10 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I have noticed some unusual behavior while running the script.
when i use below script it gives output 355.23
#!/bin/bash
ONEDAY=`date +%Y%m%d --date="1 days ago"`
cat /opt/occ/var/performance/counters_`date -d "1 day ago" +%Y%m%d`*|grep "Gy,Gy-Gy-CCR"|awk -F"," '{print... (5 Replies)
Discussion started by: scriptor
5 Replies
LEARN ABOUT PHP
cal_from_jd
CAL_FROM_JD(3) 1 CAL_FROM_JD(3)
cal_from_jd - Converts from Julian Day Count to a supported calendar
SYNOPSIS
array cal_from_jd (int $jd, int $calendar)
DESCRIPTION
cal_from_jd(3) converts the Julian day given in $jd into a date of the specified $calendar. Supported $calendar values are CAL_GREGORIAN,
CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.
PARAMETERS
o $jd
- Julian day as integer
o $calendar
- Calendar to convert to
RETURN VALUES
Returns an array containing calendar information like month, day, year, day of week, abbreviated and full names of weekday and month and
the date in string form "month/day/year".
EXAMPLES
Example #1
cal_from_jd(3) example
<?php
$today = unixtojd(mktime(0, 0, 0, 8, 16, 2003));
print_r(cal_from_jd($today, CAL_GREGORIAN));
?>
The above example will output:
Array
(
[date] => 8/16/2003
[month] => 8
[day] => 16
[year] => 2003
[dow] => 6
[abbrevdayname] => Sat
[dayname] => Saturday
[abbrevmonth] => Aug
[monthname] => August
)
SEE ALSO
cal_to_jd(3), jdtofrench(3), jdtogregorian(3), jdtojewish(3), jdtojulian(3), jdtounix(3).
PHP Documentation Group CAL_FROM_JD(3)