Sponsored Content
Full Discussion: Supporting Others' Scripts
Top Forums Shell Programming and Scripting Supporting Others' Scripts Post 302512204 by Scott on Friday 8th of April 2011 04:26:24 PM
Old 04-08-2011
If by recent, you also mean sudden, then chances are you had no "hand-over".

For the most part, I hate maintaining other peoples' code. Everyone writes code differently, thinks differently, approaches problems differently, etc. And even the same person over time will code, think and approach problems differently. And they will maintain that code accordingly, and over time you end up with a 10k-line perl script that could be boiled down more specifically to what you know the problem today to be.

It's usually more important to know what the code is intended to accomplish, than how it might be doing it.

Perhaps your first task should be to break down that monolith, into manageable pieces, documenting it as you go. This would aid your understanding, and anyone else who had to use it would thank you!

As for "quick", there's probably no fix. Just bite the bullet and dig in!

Last edited by Scott; 04-08-2011 at 05:44 PM.. Reason: Added "For the most part"!
 

6 More Discussions You Might Find Interesting

1. HP-UX

tool supporting SPL

Hi, i heard a tool called "Source reader" used in HP-ux that supports for SPL language.I am also told it works similar to ctags and cscope as in C.Does anybody know abt this tool? If so plz share it with me ..... (0 Replies)
Discussion started by: vijaya2006
0 Replies

2. Linux

RHEL 3 is not supporting SCASI Disk

Hi guys I am having some SCASI Driver issue while installing the RHEL 3 on SunFire X4200 series Server so can anyone help me out as how to get rid off from this problem. (1 Reply)
Discussion started by: daya.pandit
1 Replies

3. Red Hat

RHEL 3 is not supporting SCASI disk

Hi guys I am having some SCASI Driver issue while installing the RHEL 3 on SunFire X4200 series Server so can anyone help me out as how to get rid off from this problem. (2 Replies)
Discussion started by: daya.pandit
2 Replies

4. Solaris

Supporting NIC speed

Hi, I have few Solaris (9 and 10) servers, whose consoles are running on 10 MBPs. Now, Network team is changing their switch, which doesn't support 10 MBPs and we need to check if console all of those servers will support 100MBPs or more. Is there any way to check supported (or maximum supported)... (7 Replies)
Discussion started by: solaris_1977
7 Replies

5. Shell Programming and Scripting

Ssh not supporting sudo and sqlplus commands

Hi Guys , I was facing an issue some thing like , I have to connect remote machine and should execute few commands over there , I am able to run some simple commands , but below commands are throws error like not found. eg : sudo su - username and sqlplus user/pwd@db , srvrmgr commands etc ... (8 Replies)
Discussion started by: chandini
8 Replies

6. HP-UX

Ftp command nlist not supporting in sftp

Hi, We are using HP-UX. Previously we were using ftp to connect to remote list the text file name and copy into local file with .ls extension. For this we are using nlist RBOBAR*.txt DMSFT.ls now we want to convert the integration with sftp. So In sftp nlist command is not supported. How can we... (8 Replies)
Discussion started by: Pelins
8 Replies
cuserid(3S)															       cuserid(3S)

NAME
cuserid() - get character login name of the user SYNOPSIS
Remarks: Because this function behaved differently in previous releases of HP-UX, and behaves differently on other systems, its use is not recom- mended. It is provided only for conformance to current industry standards, and is subject to withdrawal in future releases of HP-UX. For portability and security, application writers and maintainers should search their existing code and replace references to with equiva- lent calls to or depending on which user name is desired. DESCRIPTION
generates a character-string representation of the user name corresponding to the effective user ID of the process. If s is a NULL pointer, this representation is generated in an internal static area, the address of which is returned. Otherwise, s is assumed to point to an array of at least characters; the representation is left in this array. The constant is defined in the header file. For multi-thread applications, if s is a NULL pointer, the operation is not performed and a NULL pointer is returned. DIAGNOSTICS
If the login name cannot be found, returns a NULL pointer; if s is not a NULL pointer, a null character is placed at s[0]. WARNINGS
Obsolescent Interfaces is to be obsoleted at a future date. SEE ALSO
geteuid(2), getuid(2), getlogin(3C), getpwent(3C), getpwuid(3C), thread_safety(5). STANDARDS CONFORMANCE
TO BE OBSOLETED cuserid(3S)
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy