System Programming

40K

Solutions

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi Experts,
I am looking for a program that will keep checking at a particular folder every 20 minutes, if there were no new files created then will send an email.
This should be running all the time except for night hours (10.15 PM to 6.00 AM).
Thanks
0
Announcing the Winners!
LVL 13
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

Hi Experts,
I am looking for a program that will list all PC names, browser names and versions within the network.
Would prefer it to be done either as a DOS command, batch file or VBA.
Thanks
0
Hi Experts,

How can I modify this DOS command to only look at files created after a certain date?

Thanks
0
Hi Experts,
What is the easiest way to search for a word within the contents of files in a specific folder, including sub folders?
Would prefer not to install software or change pc settings, as this is needed for a one time only.
Thanks
0
I am preparing myself for interview for System Analyst position.
Ma background is in Application development  and most in  BI Development area.
I need some sources or materials with proper questions and answers to update and upgrade my knowledge. It would be good if it is Microsoft standard test or something similar.
0
Hi,

Parent and child processes are accessing same content from nfs share. based on some logic parent process deleted files which are already opened by child process. I think, it's internally created files which are .nfsxxxxxxx. These are with c++ application. Is there any settings or configuration to handle such issues to avoid .nfsxxxx files.

Thanks,
Bvm
0
I am attempting to add additional media to my BRMS configuration. I am using the following command:

ADDMEDBRM VOL(A01001) MEDCLS(ULTRIUM5) VOLCNT(15) INZ(*YES) TEXT('Backs up all user data') DEV(TAPDDBKP) NXTVOLMSG(*NO) LOC(TAPDDBKP)

Where TAPDDBKP is our Data Domain that we are backing up to.

When I run this, I get the following error:  Command ended due to error

Upon further investigation, I am getting the error: Cartridge A01001 not found

In the help text for this, it shows you can run a ADDTAPCTG command to add cartridges.  If I attempt to do this (ADDTAPCTG DEV(TAPDDBKP) CTG(A01001)), I get the following error: Cartridge A01001 not found

I am not sure what I need to do. Any help would be much appreciated!
0
I use a couple of cronjobs that reside on my website's "back end" at the hosting company that work like this:

At a set time each week, a batch of files, say from "Folder A." is moved to a folder, replacing the files there which have the same name (overwrites them).

If there are no files in folder A, an email is sent to me notifying me of  the lack of files AND then moves a group of same-named files from a standby folder.

I had these jobs created years ago by a freelancer. Now I need some more. I have a background (from more than ten years ago)  in BASIC and I'm wondering if I can learn how to do this fairly quickly and easily or if it would be better to farm it out to a freelancer. I;m not in a huge hurry, but the sooner, the better.

OR is there an online "auto-writer" type of service that takes your input and generates the code, either at no cost or for a proce?

Your thoughts?
0
Hello Experts
I need script or what ever tools that allowing me to suspend or stop SQL service at the weekend, even if some one restart the server, until a revers or resume script runing.
The management won't allow users to access applications out of work time
0
When I attempt to log in to my iSeries server via Putty (Port 22) - I am connected to the server, but when I attempt to log in, I get "Access Denied"

I compared my SSHD_CONFIG to other systems and everything appears to be the same.

I verified that other users get the same thing - so this is not related to any specific user...

Any assistance would be much appreciated.
0
Amazon Web Services
LVL 13
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Does anyone know if it is  possible  to submit a remote command on an iSeries server using SSH (sftp) using a different user than what is configured for SSH?

For example, if I wanted to make a change to a user profile, I would run this command:

CHGUSRPRF USRPRF(USERPROFILE) LMTCPB(*YES)

If I wanted to run that command as another user (called SUPERUSER) - I would run:

SBMJOB CMD(CHGUSRPRF USRPRF(USERPROFILE) LMTCPB(*YES)) JOB(SFTPCMD) USER(SUPERUSER)

Wondering if there is a way to submit the above command (using the SUPERUSER user profile) via SSH (with the cavaet that the SUPERUSER user profile is not the user configured for SFTP. The following code "should" work - but when it does it tells me I don't have access to the CHGUSRPRF command (which the SFTPUSER doesn't - but the SUPERUSER does)

SBMJOB CMD(QSH CMD('ssh -T sftpuser@servername ''system "SBMJOB CMD(CHGUSRPRF USRPRF(USERPROFILE) LMTCPB(*YES)) JOB(SFTPCMD) USER(SUPERUSER)" ''')) JOB(SFTPJOB) USER(SFTPUSER)

Hopefully that makes sense

I was just hoping to get around having to configure SFTP for the SUPERUSER if I didn't have to...

Any help would be appreciated.
0
Hi Experts,

This is in reference to the following.
I would like to have the lunch column getting populated with the correct amount.

Thanks in advance.
0
Does anyone know how to display the current temperature for an IBM i server?
0
MY SYSTEM
Desktop Machine
Windows 10 Enterprise

BACKGROUND
I want to place onto the (primary) desktop, shortcuts of certain file folders. (The "primary" desktop means the one that comes up by default when you first install the OS.) When I was working on Windows 7, I was able to Right-Click (and hold) a folder from the File Explorer to the desktop, drop it (release the Right-Click-Hold), and an icon would appear on the desktop. When you click on that icon, it opens the folder in a File Explorer window.

Now, on Windows 10, when I attempt the same procedure (holding the ALT key before dropping), the tool-tip text says, "Create Link In Desktop." However, the icon never appears on the desktop.

QUESTION
WHERE is the shortcut ICON stored when I attempt to create a desktop shortcut for a folder from File Explorer? I want to know exactly where that shortcut it is saved (by Windows) so I can either move it manually to the desktop, or delete it.

NOTE
I already know a WORKAROUND for this, i.e., placing a shortcut icon on the desktop: Right-Click the desktop, select "NEW > SHORTCUT", and browse to the folder of interest;  that is NOT the question I am asking.
0
Is it possible to create an Executable (.exe) to run as a task to search through Task Managers Processes or Application Interface to find a value like a PID or name of a file.
Trying to reduce eye strain and realized someone or something has hijacked my laptop. I live literally next to a small private college where the number one program is Cyber Hacking. So I think some kids have gotten hold of information of mine. I recently had a rash of Hulu, Spotify & Netflix accounts opened. I had to close my bank accounts.

Anyway in my quest to find out the whats and the who's I have learned a little about investigation and need a hand a searching daily on Task Manager if it is possible. I did not see a CNTRL + F function to find items in Task Mgr. I did see "Run New Task" as and EXE.

So if I can do that. Is there a way to create a exe to help me search a long page for a PID or a name? If do how?
0
Hi Experts,

I had the following code working perfectly fine on my pc.

   sDir = "E:\AppDev\FTP\Caspio"

    StrFile = Dir(sDir & "*" & sFileStr & "*")
    Do While Len(StrFile) > 0 And Not IsFileOpen(sDir & StrFile)

Open in new window


However when placing it into the server it always returning an empty string.

Folder above contains many files (on that server).
0
how to understand big new project code quickly and effectively to write new enhancement to existing code or to fix some defects or to debug to improve some areas of poor performance.

what are the tips and recommendations , best practices around this
Please advise
0
Hi Experts,
This is in reference of my previous question.
https://www.experts-exchange.com/questions/29131073/Function-to-return-given-records-from-multiple-files-needed.html?anchor=a42767252¬ificationFollowed=220950287#a42767252
I have now the following code
Public Function ListRecords(sFolder As String, sFile As String, sCriteria As String, sNewFile As String)
    Const ForReading = 1
    Dim objRegEx As Object, objFSO As Object, objFile As Object
    Set objRegEx = CreateObject("VBScript.RegExp")
    Set objFSO = CreateObject("Scripting.FileSystemObject")

    Set newFile = objFSO.CreateTextFile(sNewFile, True)
    
    objRegEx.Pattern = sCriteria
    sDir = sFolder & "\"
    StrFile = Dir(sDir & "*" & sFile & "*")
    Do While Len(StrFile) > 0
        Set objFile = objFSO.OpenTextFile(sDir & StrFile, ForReading)
            
        Do Until objFile.AtEndOfStream
            strSearchString = objFile.ReadLine
            Set colMatches = objRegEx.Execute(strSearchString)
            If colMatches.Count > 0 Then
                For Each strMatch In colMatches
                    '' Write strSearchString
                    newFile.Write strSearchString
                Next
            End If
        Loop
        'Debug.Print objFile.DateCreated
        objFile.Close

        
        StrFile = Dir

    Loop
    
    objFile.Close
    newFile.Close
End Function

Open in new window


Would like to add the below
1- function should have another param for field name, one for field name and one for criteria.
2- should auto allocate the field position in order to find the matching criteria.
3- if possible to add date/time of file created of each file into the output file.

Thanks
0
Hi Experts,

I'm looking for a function that would do the following.

Loop thru all files of a given folder.
Search for files containing some wording in their name "PatMed" for example.
All files are ".txt"
and look for PatientID = 123.

Function should return the entire record
If found more than one, should return all
This should be in order of file created.
If possible, to include in each row, the date/time of file created.

So function should Receive 4 parameters (FolderName, FileName, FieldName, Criteria)
and should either create a file with results, or just return a text delimited string.

Sample of file attached.

PS. Would prefer VBA function.

Thanks
Untitled.png
0
Why Diversity in Tech Matters
LVL 13
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Does any Expert know of an organization that supplies surplus / used computers to the elderly? I know of a person on a fixed low income that cannot come close to afford to purchase a computer. She lives in Oklahoma and is in a small town and is somewhat isolated. A computer would make a great difference in this person's life. I had seen many years ago a story detailing a young man in his teens that collected anything and everything and reassembled components for this exact purpose. If anyone knows of such a program please let me know so that I can turn this person's information over to them for consideration. This person is an education magnet! She reads every book she can get her hands on and would feel like she were in heaven if she had the ability to be on the internet. At the moment she has been loaned a small 8 inch palm type device but due to the size and the slow speed it is virtually useless. I personally would pay it forward to her some sort of book club subscription if she was able to obtain the computer. It IS the season for love and giving. Any thoughts or ideas would be appreciated.
0
Hi Experts,
Is there a way to use a single keyboard key to perform the following?
Shift-F8      Step over the line by running the procedure on the current line without going into it and stepping through each line
Thanks
0
any free good tool to sync up favorite book marks across browsers and across different laptops
please advise
1
Hi Experts,
I have a linked table to CSV file, and after finally finishing defining all field types and linking (hundreds of fields all different types, dont ask why...), I realized file was not named correctly.
Now just trying to change the name of file and getting the attached error.
Can someone please help me out here, so I dont have to redo the entire process...
Thanks
Untitled.png
0
Hi Experts,
Looking for a script that will perform the following
open a given spreadsheet, loop thru all columns/rows and replace all data as follows. (except for first row)
for every character found, replace it with letter A
for every digit found, replace it with 1
should leave any special character like slashes or space intact.
Thanks
0
hello
I have a file name info.txt under /etc/
this file contain four lines the fourth line have expiration:data
I want to check this data if it's today+10Days then create a new file name:done.txt and contain done.
else do noting.
thanks.
0

System Programming

40K

Solutions

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.