Search Results

Search: Posts Made By: pallak7
Forum: Programming 12-06-2008
8,806
Posted By pallak7
Thanks to everybody for your help. I ended up...
Thanks to everybody for your help. I ended up going with frank_rizzo's suggestion and I now have it working. I didn't even know about the rindex() function so that would probably be why I was...
Forum: Programming 12-06-2008
8,806
Posted By pallak7
Adding a single char to a char pointer.
Hello,

I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here...
Forum: Programming 12-04-2008
19,954
Posted By pallak7
I think I may have it figured out. Is this...
I think I may have it figured out. Is this correct:
if((perms->st_mode & S_IRWXO) && S_IROTH != 1) then return an error
to check if a file is world-readable and return an error if it's not? ...
Forum: Programming 12-04-2008
19,954
Posted By pallak7
How to read flags from mode_t type?
Hello,

After, I stat() a file, how can I read the various permissions flags from the st_mode variable which is of type mode_t? I would like to do something like:
struct stat *perms;
int res =...
Forum: AIX 08-27-2008
7,090
Posted By pallak7
OK, thanks for the input.
OK, thanks for the input.
Forum: AIX 08-27-2008
7,090
Posted By pallak7
Oye vey. screen isn't installed on this system. ...
Oye vey. screen isn't installed on this system. Is there any other way to bring it back or will I just have to wait for it to finish?

On a side note: what's the reasoning behind only being able...
Forum: AIX 08-27-2008
7,090
Posted By pallak7
fg help
I started a Java process via SSH that I knew was going to take a long time to run so I backgrounded it and let my SSH session expire. I logged back in to check up on it (it prints its output to...
6,137
Posted By pallak7
Well, I would do that except for it's possible...
Well, I would do that except for it's possible for the process to start up unhealthily (couldn't think of another word). This means that the process is alive but not functioning the way it's...
6,137
Posted By pallak7
grep'ing a file until a certain message appears
Hello,

I'm writing a script that will automate the launch of some services on my AIX machine. However, some services are dependent on the successful startup of others. When I start these...
4,906
Posted By pallak7
@Klashxx: After looking at rdist, it doesn't...
@Klashxx:

After looking at rdist, it doesn't seem like this will be an option as it requires all machines to be running the rdist daemon, correct? The three servers do not run them and it's not...
4,906
Posted By pallak7
Not possible. The policy is very strict and, as...
Not possible. The policy is very strict and, as I said, not under our control.

I have not heard of rdist. I will look into it and probably be back with more questions.

Thanks.
4,906
Posted By pallak7
They do support SSH but the FTP doesn't support...
They do support SSH but the FTP doesn't support interaction. When I tried to write a batch file and call it with
sftp -B batchfile
it says:

In other words, I didn't want to hard-code the...
4,906
Posted By pallak7
One of the servers does use PK authentication but...
One of the servers does use PK authentication but it still requires a passphrase to unlock the private key. The other two are strictly password-based and, unfortunately, the policy is not under our...
1,631
Posted By pallak7
There are three things I see: 1. In the...
There are three things I see:

1. In the second command, if the shell finds another "mount" in your $PATH before it finds it in /usr/lib/fs/hsfs/ then it will use that one, which I'm guessing it is...
4,906
Posted By pallak7
Any way to make scp more powerful?
Hello,

I'm writing a script to automate the delivery of our code to different target environments and I was wondering if there's any way to cut down on the number of authentications that are...
16,243
Posted By pallak7
Nevermind. I seem to have found the answer in...
Nevermind. I seem to have found the answer in egrep. I can't get exactly what I need but I'm playing with it and if I can't figure it out I'll post back.

Thanks.
16,243
Posted By pallak7
Using OR in grep
Is there a way to pipe multiple expressions to grep where grep will search for anything matching either of the expressions? I've looked in the manual but haven't found anything that fits this case. ...
1,921
Posted By pallak7
I knew it had to be something stupid like that. ...
I knew it had to be something stupid like that. Thanks, matrixmadhan. My Java background definitely came into play there.
1,921
Posted By pallak7
What's wrong here? (Beginner's script)
Hi Folks,

New member here. I have been using UNIX systems for the past ~4 years (Linux, AIX, HP-UX, mostly) but have never had the need to write a script for myself. Now, things have changed and...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 01:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy