Questions tagged [file-processing]

333 questions
1
vote
1 answer

Options for checking if file exists on DB Server Filesystem

I am maintaining a Classic ASP web application accessing a database(SQL Server 2012) on a seperate server. There is alot of integration work with this legacy application. Alot of which involves import files hosted on the database server. These are…
tinonetic
  • 7,751
  • 11
  • 54
  • 79
1
vote
3 answers

Perl extracting data from a file based on condition

I have a log file which looks like below: 874899 root@commands to execute some files Exit Status : 0 Exit time : Sun May 5 18:19:39 2013 874923 root@commands to execute some files Exit Status : 2 Exit time : Sun May 5…
deep
  • 686
  • 4
  • 17
  • 33
1
vote
3 answers

C# solution for analysing files as they are written/modified

I have several projects that require me to monitor files, and then edit them as they are getting written to disk. I have a feeling that what I am looking for is operationally the same as how anti-virus tools operate. Let me give more details: 1) I…
Smurf
  • 21
  • 1
  • 2
1
vote
2 answers

Printing tokenized data from file in C

I've been trying to read in data from a file by tokenizing it first. In this example, I've made it so that it asks you to first input the data in yourself (which I've made sure works), and then read it in but tokenize with spaces. So if I was to…
Yaser Sleiman
  • 95
  • 1
  • 3
  • 12
1
vote
2 answers

Send mail with the latest file's content if appended

There is /var/log/httpd/error_log file which contains errors from the whole httpd. I want to be able to send those new log via email message if any appears - with for example 15 minutes interval. I would like to use CRON to call bash script that…
hsz
  • 148,279
  • 62
  • 259
  • 315
1
vote
2 answers

Read words in a specific line in a text file using shell script

In my Bash shell script, I would like to read a specific line from a file; that is delimited by : and assign each section to a variable for processing later. For example I want to read the words found on line 2. The text…
user2330632
  • 15
  • 1
  • 5
1
vote
2 answers

Write to File's Last 32 Characters

I want to write an info to binary file's last 32 characters. But when i call my writeInfo function, it deletes the whole content. I can read the data before i write, but after i write with this function, it deletes the whole content, instead of…
user1621727
1
vote
1 answer

Console VB.NET: File Processing - Search file for a specific number and output record

Hello I am building a console application in VB.NET that reads a record file and outputs it to the user. I have gotten the program to output all of the records to the console but I cannot seem to get the search function working. I want the user to…
1
vote
3 answers

Parse tab delimited text file

I need to parse a tab-delimited text file by grabbing specific columns, like columns 1 and 5, and output each of these columns into a text file. Please find an example of the data file, and the code: Data file: COL1 COL2 COL3 COL4 COL5 COL6 123 345…
C G
  • 11
  • 1
  • 2
1
vote
2 answers

Appending to a HTML log file in PHP

I am trying to append to a log file, using HTML tables format for each incident. However, there is one difficulty which I am not sure how to solve. Here's a static output of the HTML
....