10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to get a line returned as is from the below input.csv file in Bash in Linux, and somehow I get an unexpected newline in the middle of my input.
Here's a sample line in input.csv
$> more input.csv
TEST_SYSTEM,DUMMY@GMAIL.COM|JULIA H|BROWN
And here's a very basic while loop... (7 Replies)
Discussion started by: ChicagoBlues
7 Replies
2. Shell Programming and Scripting
Hi Everyone!
I am facing an issue in running a command line utility from the CRON.
This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue.
When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies
3. Shell Programming and Scripting
Hi,
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
Discussion started by: ketanraut
2 Replies
4. Shell Programming and Scripting
Here is my cron entry:
13 10 * * * /home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"%Y%m%d"`log.csv
Here is my cron error:
unexpected EOF while looking for matching ``'
...cron executes:
/home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"
..and NOT... (2 Replies)
Discussion started by: landog
2 Replies
5. Shell Programming and Scripting
Ubuntu 9.10 is my linux distro
Based on forums they say that the problem is with environment .
here is my case:
login as user, then sudo -s
using this command: s3cmd put file s3://bucket >>worked!
now here is the simple script intended for testing:
#! /bin/bash
env >/tmp/cronjob.log... (1 Reply)
Discussion started by: qwerty20
1 Replies
6. Shell Programming and Scripting
Hi,
PHP user here. I'm using an endless loop to perform to mimic a cron. The script does something every 20 minutes. It sleep()s in the meantime.
I have various checks that ensure that only instance can run, including a "gentleman agreement" locked file.
However, I'd like to make sure... (2 Replies)
Discussion started by: jjshell
2 Replies
7. Shell Programming and Scripting
Hi All,
I found this line in my crontab..
0 6 * * * "some script name"
my question is it means the script should run at 6 00 am. But on what those days are not mentioned. Then in that case when will the script will run?
Thanks for ur help in advance,
Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies
8. UNIX for Dummies Questions & Answers
I have a script which runs fine through command line, but doesn't run through cron. There are some variables which are set by the .profile file which are used by the script. Is it that cront does not pick these variables.
$/export/home/rahul/bin/createfile.sh >>... (3 Replies)
Discussion started by: rahulrathod
3 Replies
9. UNIX for Advanced & Expert Users
Under, Solaris 10 I have the following problem:
A script executed at command line runs with nice level 0, as expected.
Same script started under (user) crontab runs with nice level 2.
I would prefer it run at 0. Is this possible? If so, how?
Thanks. (0 Replies)
Discussion started by: henrydark
0 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I have spent 2 hours going through the forum and have not found an answer to my question, I hope someone can help.
I have cron setup to run two commands, one at 1am and one at 3 am, the one at 1 am works but not the one at 3 am. The time is set as:
0 1 * * * /path/to/file
0 3 * * *... (3 Replies)
Discussion started by: burnie
3 Replies