9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello, :)
I'm trying to test if a remote directory exist per ssh, I have already made a ssh key and it works :
#!/bin/bash
HOST="10.10.1.22"
FILE_PATH="/var/wwww/html"
ssh -q $HOST ] && echo "Directory exists" || echo "Directory does not exist";
Output :
... (4 Replies)
Discussion started by: Arnaudh78
4 Replies
2. Programming
How to initialize an object of class say "A", with an object of type say "B".
The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested"
#include <iostream>
using namespace std;
class B;
class A{
public:
A() { cout <<"\nA()" << endl; }
... (1 Reply)
Discussion started by: techmonk
1 Replies
3. Shell Programming and Scripting
I am setting a number of variables in my script and I would like to test they exist by using a for loop.
e.g.
VAR1=abc
VAR2=xyz
for i in VAR1 VAR2; do
if ; then
echo Alert
fi
done
But of course the $i doesn't refer to the variable itself, rather to the strings VAR1 & VAR2.
Does... (2 Replies)
Discussion started by: Catullus
2 Replies
4. Programming
Hey,
I'm currently getting into some kernel module progamming. As a little exercise I want to read the headers out of an ELF file. My code is very simple, here is the important part:
struct file *fp;
/* ... */
fp = filp_open("some/file/on/my/pc", O_RDONLY, 0);
if(fp == NULL) {
... (15 Replies)
Discussion started by: disaster
15 Replies
5. Virtualization and Cloud Computing
After some initial confusing results measuring "before-and-after CloudFront/S3" performance, Dennis Opacki, Systems Operations Manager for Amazon Cloudfront offered to help. Working with the test results from a number of members of The UNIX and Linux Forums pulling a small 1623 byte gif object... (3 Replies)
Discussion started by: Neo
3 Replies
6. UNIX for Dummies Questions & Answers
I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine.
I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this.
Here is my function:
<?php
function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies
7. Shell Programming and Scripting
Can someone please shed light on why this may not be working, file does exist, but I get an error
if ]
then
echo "No ${source_path}/${file_mask} found - ">> ${logfile}
result=1
check_result ${result} "Failed to find file... (4 Replies)
Discussion started by: Pokermad
4 Replies
8. Linux
Dear All,
Need your help to rectify this error.
Recently I have upgraded my Linux server from 32 bit to 64 bit server.
OS details are
Red Hat Enterprise Linux Server release 5.3
Kernel 2.6.18-120.el5 on an x86_64
After upgradation, when i try to compile or catalog any program, it is... (2 Replies)
Discussion started by: mysmileforu
2 Replies
9. Programming
Hi,
I've tried to compile a program I wrote with a Makefile, yet it returns an error:
<<<test_log>>>
itest_log.o /sr/local/bin/gcc -o test_log.o -I ../../../include -L ../../../lib -llog_mgr
sh: itest_log.o: execute permission denied
Error code 1
make: Fatal error: Command failed for... (3 Replies)
Discussion started by: Stevhp
3 Replies