Sponsored Content
Top Forums Programming need help with C access times of files Post 302497549 by omega666 on Thursday 17th of February 2011 01:49:25 PM
Old 02-17-2011
i ran the program like so
clear
dos2unix acc.c acc.c
gcc -Wall -g -o acc acc.c.
touch .test
./acc -b acc.c (this makes it only check for modification time)
./acc acc.c (this only checks for access time)


for the last result, i think i am supposed to get only .test, but for some reason i get .test and acc

so if i run the code to get the access time, i will get the access time , then update that files access time?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies

2. UNIX for Dummies Questions & Answers

Last modification times of files less than 6 months old

How do I get the modification time for files less than 6 months old? (It seems for fles as old or older than this I get to see only the day,month and year. I tried the option -u but it gives me the last accessed time) (1 Reply)
Discussion started by: Abhishek Ghose
1 Replies

3. SCO

Find access times

I am working on a SCO Unixware 7.1.4 server and I have been asked to determine over the last year when a file was accessed, not just the last time it was accessed. Is there anyway to figure this out? Thanks in advance, Kevin Harnden (1 Reply)
Discussion started by: chefsride
1 Replies

4. Shell Programming and Scripting

ls -l all files created between two times

solaris 8 and solaris 10 c shell I have a /local/tmp/ directory that is cleared out every day and files are created in it all day long from 0000 - 2359 (24 hour clock) A new file is created in this directory every couple of minutes. I want a script "rrtime" that takes two arguments hhmm1 and... (4 Replies)
Discussion started by: ajp7701
4 Replies

5. AIX

how would you know your server was rebooted 3 times or 5 times

Is there such location or command to know how many times did you reboot your server in that particular day?in AIX. (3 Replies)
Discussion started by: kenshinhimura
3 Replies

6. UNIX for Dummies Questions & Answers

Copying files multiple times increasing sequentially

I am looking for the easiest way to copy a set of files 1000 times and increment sequentially. I want to copy these 2 files: Scenario.1.1.ud Scenario.1.2.ud So that it creates the following: Scenario.2.1.ud Scenario.2.2.ud Scenario.3.1.ud Scenario.3.2.ud .. .. Scenario.1000.1.ud... (2 Replies)
Discussion started by: JPOrlando
2 Replies

7. UNIX for Dummies Questions & Answers

kernel giving access for multiple users to access files

hi all, i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies

8. Shell Programming and Scripting

How to access files from different directories and to perform search action in those files?

Hi, I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
Discussion started by: bangarukannan
3 Replies

9. Programming

Problem with implementing the times() function in C (struct tms times return zero/negative values)

Hello, i'm trying to implement the times() function and i'm programming in C. I'm using the "struct tms" structure which consists of the fields: The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process. The tms_stime structure... (1 Reply)
Discussion started by: g_p
1 Replies

10. Shell Programming and Scripting

Counting number of times content in columns occurs in other files

I need to figure out how many times a location (columns 1 and 2) is present within a group of files. I figured using a combination of 'while read' and 'grep' I could count the number of instances but its not working for me. cat file.txt | while read line do grep $line *08-new.txt | wc -l... (6 Replies)
Discussion started by: ncwxpanther
6 Replies
IDFETCH(1)						     NCBI Tools User's Manual							IDFETCH(1)

NAME
idfetch - retrieve biological data from the NCBI ID1 server SYNOPSIS
idfetch [-] [-F str] [-G filename] [-Q filename] [-c N] [-d str] [-e N] [-f str] [-g N] [-i N] [-l filename] [-n] [-o filename] [-q str] [-s str] [-t N] DESCRIPTION
idfetch is a client for NCBI's ID1 server, which contains a large database of annotated biological sequences. OPTIONS
A summary of options is included below. - Print usage message -F str Add the specified feature types (comma-delimited); allowed values are CDD, SNP, SNP_graph, MGC, HPRD, STS, tRNA, and microRNA. -G filename File with list of GIs, (versioned) accessions, FASTA SeqIDs to dump -Q filename Generate GI list by Entrez query in filename; requires -dn or -dp. -c N Max complexity: 0 get the whole blob (default) 1 get the bioseq of interest 2 get the minimal bioseq-set containing the bioseq of interest 3 get the minimal nuc-prot containing the bioseq of interest 4 get the minimal pub-set containing the bioseq of interest -d str Database to use (with -q, can be either n for nucleotides or p for proteins). -e N Entity number (retrieval number) to dump -f str Flattened SeqId. Possible formats: type([name][,[accession][,[release][,version]]]) as '5(HUMHBB)' type=accession type:number (type is a number indicating the ASN.1 Seq-id subtype.) -g N GI id for single Entity to dump -i N Type of lookup: 0 get Seq-entry (default) 1 get GI state (output to stderr) 2 get SeqIds 3 get GI history (sequence change only) 4 get revision history (any change to ASN.1) -l filename Log file -n Output only the list of GIs (with -q and -Q). -o filename Filename for output (default = stdout) -q str Generate gi list by Entrez query. Requires -dn or -dp. -s str FASTA style SeqId ENCLOSED IN QUOTES. Formats: lcl|int or str bbs|int bbm|int gb|acc|loc emb|acc|loc pir|acc|name sp|acc|name pat|country|patent|seq gi|int dbj|acc|loc prf|acc|name pdb|entry|chain -t N Output type: 1 text ASN.1 (default) 2 binary ASN.1 3 GenBank (Seq-entry only) 4 GenPept (Seq-entry only) 5 FASTA (table for history) 6 quality scores (Seq-entry only) 7 Entrez DocSums 8 FASTA reverse complement AUTHOR
The National Center for Biotechnology Information. NCBI
2011-09-02 IDFETCH(1)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy