Sponsored Content
Top Forums Shell Programming and Scripting [Solved] problem - connecting code with external file Post 302607867 by Skaperen on Thursday 15th of March 2012 01:55:32 PM
Old 03-15-2012
Try changing like this:

Code:
if [ "`echo $variable | cut -f 2 -d /`" = 1024 ] ; then

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Connecting an external SCSI drive to a unix computer

I am interested in booting up my unix computer by connecting an external SCSI drive( intergraph) to it. The unix box is also an intergraph computer. Whenever I boot it, it gives me an error that says Drive not ready, Insert Boot Diskette in A. What am I doing wrong? Any input would be... (3 Replies)
Discussion started by: teruotor
3 Replies

2. HP-UX

Connecting To An External Network Using A logical (PACKAGE) IP Address

Hie everyone, I am currently facing a problem whereby I can not connect to an external network from a package ip address on a HP-UX cluster. Below is the illustration: Primary Server IP Address : n.n.n.202 Secondary Server IP Address : n.n.n.212 Package IP Address : n.n.n.211 ... (1 Reply)
Discussion started by: cchilenga
1 Replies

3. AIX

problems connecting with exceed (solved)

Hi, We have a user who cannot connect to the aix system anymore with hummingbird exceed. Our unix servers are aix 5.3. She is running windows xp and using hummingbird 12. She used to not have any problem, but now when she tries to use xstart she gets an error 'unable to connect to host using... (0 Replies)
Discussion started by: fwellers
0 Replies

4. Shell Programming and Scripting

[solved] SSH connecting to one server but failed in another

Hello I have connected to a remote server via ssh but its not working now ,but the same method I applied in another server and its working fine now Below are the logs For Successfully connected server debug1: Authentications that can continue:... (1 Reply)
Discussion started by: Pratik4891
1 Replies

5. Shell Programming and Scripting

[Solved] Value of a variable is not recognised for commands comes from external file

Hi, my script is setting a variable with value and this variable is present in my another command that is coming from external file and this command is internally called after this variable is set. but while execution of this command, the value is not retrieved properly. say, my script... (5 Replies)
Discussion started by: rbalaj16
5 Replies

6. UNIX for Dummies Questions & Answers

Problem connecting with Reflection X 14.1

Other people at work are able to connect but I am not. I am not sure if there is a setting that I am missing. Connecting from Win7 to Solaris 10. Connection attempt log: gnome-session Connecting 144.243.90.235 via TELNET Thu Mar 29 15:15:32 2012 login: *** Password: ******* Last login: Thu... (2 Replies)
Discussion started by: SIFT3R
2 Replies

7. UNIX for Dummies Questions & Answers

[Solved] How to refer to input file in code?

This may be a dumb question, but googling is not giving me an answer. I'm trying to figure out how to refer to an input file in my code. Lets say i run a script in bash: "sh shellscript.sh inputfile" (Inputfile will be variable...whatever file i run the script on) I wanted to make... (5 Replies)
Discussion started by: legato22
5 Replies

8. UNIX for Dummies Questions & Answers

[Solved] Problem bash if file exists then < do...> else <do...>

Hi ! I have a problem with an if/else statement in bash. I want to check if the file exists before running a task (for example here, counting lines), and if not I need to create an empty output file if then wc -l input.tab > output.temp else >output.temp fi The problem is even if the... (2 Replies)
Discussion started by: beca123456
2 Replies

9. Solaris

[Solved] Issues connecting to storage array

I have two T2000 servers connected to sun storage array StorEdge 3310 as follows: CH0 connected to SNGL BUS CONF CH1 connected to HOST1 CH2 open CH3 connected to HOST2 DUAL BUS CONF open I have created some luns which I can mount and use on HOST1 but from HOST2 I cant see them ... (3 Replies)
Discussion started by: aliyesami
3 Replies

10. UNIX for Dummies Questions & Answers

[Solved] File Splitting And Renaming Problem

OK So I Recently Bought A whatbox Seed-box Act!!:cool: I am connected to whatbox via SSH!!! Now i have downloaded a movie and renamed it to 2yify.mp4 (800MB):o When I TYPE the command to split it which is:) split -b 400m 2yify.mp4 It gets renamed into two parts with different names... (4 Replies)
Discussion started by: anime12345
4 Replies
PAPI_event_info_t(3)						       PAPI						      PAPI_event_info_t(3)

NAME
PAPI_event_info_t - SYNOPSIS
Data Fields unsigned int event_code char symbol [1024] char short_descr [64] char long_descr [1024] int component_index char units [64] int location int data_type int value_type int timescope int update_type int update_freq unsigned int count unsigned int event_type char derived [64] char postfix [256] unsigned int code [12] char name [12][256] char note [1024] Field Documentation unsigned int PAPI_event_info_t::code[12] array of values that further describe the event: o presets: native event_code values o native:, register values(?) int PAPI_event_info_t::component_index component this event belongs to unsigned int PAPI_event_info_t::count number of terms (usually 1) in the code and name fields o presets: these are native events o native: these are unused int PAPI_event_info_t::data_type data type returned by PAPI char PAPI_event_info_t::derived[64] name of the derived type o presets: usually NOT_DERIVED o native: empty string unsigned int PAPI_event_info_t::event_code preset (0x8xxxxxxx) or native (0x4xxxxxxx) event code unsigned int PAPI_event_info_t::event_type event type or category for preset events only int PAPI_event_info_t::location location event applies to char PAPI_event_info_t::long_descr[1024] a longer description: typically a sentence for presets, possibly a paragraph from vendor docs for native events char PAPI_event_info_t::name[12][256] < names of code terms: - presets: native event names, o native: descriptive strings for each register value(?) char PAPI_event_info_t::note[1024] an optional developer note supplied with a preset event to delineate platform specific anomalies or restrictions char PAPI_event_info_t::postfix[256] string containing postfix operations; only defined for preset events of derived type DERIVED_POSTFIX char PAPI_event_info_t::short_descr[64] a short description suitable for use as a label char PAPI_event_info_t::symbol[1024] name of the event int PAPI_event_info_t::timescope from start, etc. char PAPI_event_info_t::units[64] units event is measured in int PAPI_event_info_t::update_freq how frequently event is updated int PAPI_event_info_t::update_type how event is updated int PAPI_event_info_t::value_type sum or absolute Author Generated automatically by Doxygen for PAPI from the source code. Version 5.2.0.0 Tue Jun 17 2014 PAPI_event_info_t(3)
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy