09-14-2015
You are exporting your path three times, duplicating quite a lot of names in it. What things did you actually need to add to your path? Add only those.
10 More Discussions You Might Find Interesting
1. Linux
Hi eveyone and Happy Holidays,
My problem is starting splashy in fedora 8 what i have done is:-
installed splashy with no errors
edited grub removed rhgb and added quiet vga=791 splash
set default theme with command splashy_config -s default no errors
added /sbin/splashy boot in... (4 Replies)
Discussion started by: dave123
4 Replies
2. Shell Programming and Scripting
Hello all,
I would like a message to be displayed on the shell when someone opens up the terminal - something like a welcome msg with date and time. I know how to do this by running the shell commands but dont know how to display it when a user opens up the terminal?
Thanks in advance (27 Replies)
Discussion started by: mrudula009
27 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to run these commands (keylset,keylget) but i keep getting a error message "invalid command name "keylset"". I've tried running it on both ubuntu's terminal and also Evolane Tcl Engine. Any idea what could be the problem? (1 Reply)
Discussion started by: abe171
1 Replies
4. UNIX for Dummies Questions & Answers
How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies
5. OS X (Apple)
I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in.
Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies
6. Ubuntu
Here's my hardware:
GA-880GA-UD3H(rev. 2.2)
Had Ubuntu 11.04 server running with 6 Seagate 1TB ST31000524AS drives. Was NOT using the 2 white gigabyte sata ports, only blue. (8 sata ports total on MB)
1x IDE DVD-ROM (For Ubuntu Server Install disk)
I was trying to upgrade to use all SATA... (0 Replies)
Discussion started by: lorewap3
0 Replies
7. Windows & DOS: Issues & Discussions
when I run C:\cygwin\bin\run C:\cygwin\bin\startxwin.exe it fires up a terminal by default. Can I eliminate that terminal and start the x server as a service silently and sits in my status bar just there? Thanks Jack (0 Replies)
Discussion started by: lucky7456969
0 Replies
8. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
9. HP-UX
Due to an activity scheduled on the server, I had stop the apache process and then restart when the activity completed. The activity started at 9am and ended around 9 pm.
To list the apache processes that were running on the server before I stopped it, I used ps -ef | grep apache, and these were... (11 Replies)
Discussion started by: anaigini45
11 Replies
10. Shell Programming and Scripting
I would like to find all of the PIDs of processes which are not associated with a terminal and started by CRON.
When I do the ps aux | less command, I see in the TTY field a lot of processes with ? character
I would like to get those processes ID, is there a way to do that with pgrep?
... (1 Reply)
Discussion started by: ASF Studio
1 Replies
utime(3) Library Functions Manual utime(3)
Name
utime - set file times
Syntax
#include <sys/types.h>
int utime (path, times)
char *path;
struct utimbuf *times;
Description
The path points to a pathname naming a file. The function sets the access and modification times of the named file.
If times is NULL, the access and modification times of the file are set to the current time. A process must be the owner of the file or
have write permission to use in this manner.
If times is not NULL, times is interpreted as a pointer to a utimbuf structure and the access and modification times are set to the values
contained in the designated structure. Only the owner of the file or the super-user can use this way.
The function causes the time of the last file status change(st_ctime) to be updated with the current time.
The times in the following structure are measured in seconds since 00:00:00 GMT, January 1, 1970.
struct utimbuf {
time_t actime; /* access time */
time_t modtime; /* modification time */
};
Return Values
Upon successful completion, a value of zero (0) is returned. Otherwise, a value of -1 is returned, and errno is set to indicate the error.
Diagnostics
The function fails, if any of the following is true:
[EACCES] Search permission is denied by a component of the path prefix.
[EACCES] The effective user ID is not super-user, not the owner of the file, times is NULL, and write access is denied.
[EFAULT] The times is not NULL and points outside the process's allocated address space.
[EFAULT] The path points outside the process's allocated address space.
[ENOENT] The named file does not exist or path points to an empty string and the environment defined is POSIX or SYSTEM_FIVE.
[ENOTDIR] A component of the path prefix is not a directory.
[EPERM] The effective user ID is not a super-user, not the owner of the file, and times is not NULL.
[EROFS] The file system containing the file is mounted read-only.
[ETIMEDOUT] A connect request or remote file operation failed, because the connected party did not respond after a period of time deter-
mined by the communications protocol.
See Also
stat(2)
utime(3)