I'm not sure why you're getting the behavior you're seeing, but
the first thing I do when having trouble in a 'for' loop, is to
make sure the for variable has my expected result in it.
So if you do this:
is $filename what you expect for all files? Is it preceded
with the directory information? That might make using it
as your time parameter for the -t in 'touch' rather difficult.
I have an odd problem with my internet connection. I think it's software not hardware, but I'm not even certain of that. My best guess is that it relates to my recent installation of KVpnc.
I can't connect to most websites: no ping, nothing in the browser. But other websites I can connect to... (7 Replies)
Hi,
I wrote a program for Windows environment. It shows a menu to choice some operations to do. Once an operation is done, it cleans the screen with a system("cls") call, and the menu is shown again.
I'd like to just clean half screen, so the program doesn't need to call again the print menu... (5 Replies)
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
HI Guys,
Can you please let me know the procedure to reestablish the SRDF which is half split, as you can see from the below O/P that one of the device is synchronized and other devices are in split mode
Source (R1) View Target (R2) View MODES... (2 Replies)
Hello out there, I got this script that runs partly fine by my crontab. Problem is it gets to the sleep 300(which should be 5 minutes right?) part and never runs the rest of the scripts past that. All individual scripts run just fine. My var/mail file only shows it up to the " echo "Loader Stop... (3 Replies)
how to create a half-triangle like this
and that will accept an input from the user, Dimension of the triangle will be based on the users input.
example:
enter the dimension: 5
*****
-****
--***
---**
----*
thankyou (3 Replies)
I have an old p5 570 ibm server that consists of two enclosure and make by FC1847 cable, single 8 processors server.
So, after one part of it, accidentally was turned off, I lost all devices from it.
Now they all in defined mode, for example:
dodo:/# lsdev -Cc processor
proc0 Available 00-00... (8 Replies)
Discussion started by: mcgvaer
8 Replies
LEARN ABOUT OPENDARWIN
setcap
SETCAP(8) System Manager's Manual SETCAP(8)NAME
setcap - set file capabilities
SYNOPSIS
setcap [-q] [-v] (capabilities|-|-r) filename [ ... capabilitiesN fileN ]
DESCRIPTION
In the absence of the -v (verify) option setcap sets the capabilities of each specified filename to the capabilities specified. The -v
option is used to verify that the specified capabilities are currently associated with the file.
The capabilities are specified in the form described in cap_from_text(3).
The special capability string, '-', can be used to indicate that capabilities are read from the standard input. In such cases, the capabil-
ity set is terminated with a blank line.
The special capability string, '-r', is used to remove a capability set from a file.
The -q flag is used to make the program less verbose in its output.
EXIT CODE
The setcap program will exit with a 0 exit code if successful. On failure, the exit code is 1.
SEE ALSO cap_from_text(3), cap_set_file(3), getcap(8)
24th October 2008 SETCAP(8)