02-25-2005
vgersh99,
How does the script know which "lcd" to look for? Let's say i have the script set up in cron to get the file from the S:\directory and put it in the Unix server. Will it has problem finding with "S:\directory" path anf from what machine?
Thanks
CT
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All
Iam using Korne shell in AIX OS. Can u give me the syntax to send a mail.
Thanx in advance
Regards
Deepak (5 Replies)
Discussion started by: DeepakXavier
5 Replies
2. Shell Programming and Scripting
All
Please help to provide "goto" functionality in KORN shell script.
ex:
1: Command
Process some command
if check some variable
true
goto 1
else
process some other
Please help to implement this example in korne... (1 Reply)
Discussion started by: DeepakXavier
1 Replies
3. Shell Programming and Scripting
is there any way to format a file by just removing first line and last line from the file.
my file is like
test.txt
12may2004,20may2004,A
123,SCOTT,TIGER,,,,12,12-MAY-2006
124,TIGER,SCOTT,,,,,,,
....
...
163,cscssaa,abc,,,,12,12-MAY-2006
END
my requirement is to produce the same file... (1 Reply)
Discussion started by: u263066
1 Replies
4. Shell Programming and Scripting
Hi Everyone,
I have tried with the following Code for each of the following, but that does not seem to serve the purpose. Can someone give some pointers please.
1) A Korne Shell which asks the user to enter the name of a file when searching it
recursively (using the find command) in the... (3 Replies)
Discussion started by: marconi
3 Replies
5. Shell Programming and Scripting
I am new to Korne Shell Scripting. Can someone help me with a Korne Shell which asks the user :-
1) to enter the name of a file when searching it recursively (using the find
command) in the home directory of this user.
2) for a date (format AAMMJJ) and a directory and then searches ... (4 Replies)
Discussion started by: marconi
4 Replies
6. Shell Programming and Scripting
In Korne Shell Scripting, how to search recursively in a directory, the list of files modified after a given date ..
Thanks in advance.. (1 Reply)
Discussion started by: marconi
1 Replies
7. Shell Programming and Scripting
I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...
#!/usr/bin/ksh
echo "Enter a date (YYYYMMDD) "
read date
touch -t... (2 Replies)
Discussion started by: marconi
2 Replies
8. Shell Programming and Scripting
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies
9. Shell Programming and Scripting
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Discussion started by: sreenath1037
7 Replies
10. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
LEARN ABOUT DEBIAN
bcron-update
bcron-update(8) System Manager's Manual bcron-update(8)
NAME
bcron-update - Update system crontabs.
SYNOPSIS
bcron-update path [ path ... ]
DESCRIPTION
bcron-update polls the named files or directories periodically to see if there are any new, changed, or removed files. When it detects
changes, it mirrors those changes into the crontab spool directory. bcron-update runs as root in order to be able to read system files
that would potentially be unreadable otherwise.
On Debian, if path is a directory, bcron-update skips files in this directory with names that do not solely consist of lower- and uppercase
letters ('a'-'z', 'A'-'Z'), digits ('0'-'9'), underscores ('_'), and hyphens ('-').
EXAMPLES
To mirror modern vixie-cron's behavior, use:
bcron-update /etc/crontab /etc/cron.d
ENVIRONMENT
BCRON_SPOOL
The spool directory for bcron. Defaults to /var/spool/cron.
BCRON_USER
After writing files and before moving them into their final location, bcron-update changes the ownership of the file to this user so
that bcron-sched can read them.
SEE ALSO
bcron-sched(8)
DIAGNOSTICS
bcron-update outputs three different kinds of messages about actions it is taking.
Rescanning /etc/cron.d
The named directory has been modified, and will be scanned to determine what files have been added or deleted.
-/etc/cron.d/oldfile
The named file no longer exists and will be removed from the spool.
+/etc/cron.d/newfile
The named file was either created or modified since the last scan, and will be copied into the spool.
AUTHOR
Bruce Guenter <bruceg@em.ca>
bcron-update(8)