I have wrote a script which reads in a file that has a list of files within it.
The script then searches the directory for these files and when found will output to an email with a layout table indicating the date of the file and an ok status if the file = todays date if not a waiting appears. (it is to show the recipient that they need to chase for the waiting files).
two of the files are todays date - jkl.csv and stu.txt the rest are either blank or not todays date.
The problem i have is that i cannot get the waiting / ok to work. The script below is outputting all files to warning when in fact all should be warning except jkl.csv and stu.txt???
Good evening everyone. I have my finals and I'm facing a problem:
I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one.
What am I doing wrong ?
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>... (5 Replies)
Good evening everyone. I have my finals and I'm facing a problem:
I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one.
What am I doing wrong ?
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>... (1 Reply)
echo "Enter the Value : "
read value
sed '1s:\(.\{6\}\)\(.\{4\}\):\1'$value':' flextran$RUN_DATE-completed.txt > temp.txt
mv temp.txt flextran$RUN_DATE-completed.txt
on the run time after entering the input value it waits for keystroke and the values is not input to the function
The output... (4 Replies)
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
I want to read a file -line by line which consists of the following statements
Chr18:4000-4010
Chr20:4020-4030
Chr15:8000-8050
Pls. give a expression to read the line like this from a file
Chr18:4000-4010
the given two replies reading like that
Chr18:-10
but it is important to... (2 Replies)
In LVM I have one volume grp and it has two logical volumes A and B and both are full,so I extended my volume grp to 1GB with another hard disk and add this space to A and put my resr data .Now problem is that I get data from first hard disk only but I m unable to find data which is in second hard... (0 Replies)
Hello,
if I try this (in bash):
#!/bin/bash
cat leercaracter.sh | while read linea
do
# read character by character
echo $linea | while read -n 1 caracter
do
echo $caracter
done
done
New lines, spaces, tabs aren't showed by echo.
How can I 'echo' those characters?... (7 Replies)
i need to read record by record i use script
#!/bin/ksh
for i in 'cat filename'
do
echo $1
done
but i dont get expected result
i just get filename echoed on screen (4 Replies)
I am not able to receive the message on socket in the current process when its waiting for its child to exit.
code looks something like below
//in one thread of the current process
//thread 1
===============================================
int numBytes = read(sockid,buf,SIZE); //Now the... (2 Replies)
hi,
while reading a file line by line
# name of the script is scriptrd
while read line
do
echo $line
done
while executing
bash$ ./scriptrd
if i give the input as
*
the output is like it displays the contents of the current directory
i jus wanted it to print as * (6 Replies)